Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/06/2015 10:03:24 PM (11 years ago)
Author:
dcavins
Message:

Add arguments to 'widget_title' filter.

Add $instance settings and $id_base to the arguments passed along with the
'widget_title' filter for BP core widgets.

Fixes #6222.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-messages/bp-messages-widgets.php

    r9216 r9709  
    6868                 *
    6969                 * @since BuddyPress (1.9.0)
     70                 * @since BuddyPress (2.3.0) Added 'instance' and 'id_base' to arguments passed to filter.
    7071                 *
    71                  * @param string $title The widget title.
     72                 * @param string $title    The widget title.
     73                 * @param array  $instance The settings for the particular instance of the widget.
     74                 * @param string $id_base  Root ID for all widgets of this type.
    7275                 */
    73                 $title = apply_filters( 'widget_title', $title, $instance );
     76                $title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base );
    7477
    7578                echo $before_widget;
Note: See TracChangeset for help on using the changeset viewer.