Pass instance and id_base to widget_tirle filter in WP_Widget_Recent_Comments. props scribu, fixes #18393.
git-svn-id: https://develop.svn.wordpress.org/trunk@18785 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
30f64015c2
commit
425560c739
@ -641,7 +641,7 @@ class WP_Widget_Recent_Comments extends WP_Widget {
|
||||
|
||||
extract($args, EXTR_SKIP);
|
||||
$output = '';
|
||||
$title = apply_filters('widget_title', empty($instance['title']) ? __('Recent Comments') : $instance['title']);
|
||||
$title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Recent Comments' ) : $instance['title'], $instance, $this->id_base );
|
||||
|
||||
if ( empty( $instance['number'] ) || ! $number = absint( $instance['number'] ) )
|
||||
$number = 5;
|
||||
|
Loading…
x
Reference in New Issue
Block a user