Make WordPress Core

Changeset 18785


Ignore:
Timestamp:
09/27/2011 02:38:31 AM (13 years ago)
Author:
nacin
Message:

Pass instance and id_base to widget_tirle filter in WP_Widget_Recent_Comments. props scribu, fixes #18393.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/default-widgets.php

    r18679 r18785  
    642642        extract($args, EXTR_SKIP);
    643643        $output = '';
    644         $title = apply_filters('widget_title', empty($instance['title']) ? __('Recent Comments') : $instance['title']);
     644        $title = apply_filters( 'widget_title', empty( $instance['title'] ) ? __( 'Recent Comments' ) : $instance['title'], $instance, $this->id_base );
    645645
    646646        if ( empty( $instance['number'] ) || ! $number = absint( $instance['number'] ) )
Note: See TracChangeset for help on using the changeset viewer.