mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
Pass instance and id_base to widget_tirle filter in WP_Widget_Recent_Comments. props scribu, fixes #18393.
git-svn-id: http://svn.automattic.com/wordpress/trunk@18785 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
30c473c4e0
commit
ea5730329d
@ -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…
Reference in New Issue
Block a user