Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/06/2015 10:03:24 PM (5 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-groups/bp-groups-widgets.php

    r9466 r9709  
    6565         *
    6666         * @since BuddyPress (1.8.0)
    67          *
    68          * @param string $value The widget title.
     67         * @since BuddyPress (2.3.0) Added 'instance' and 'id_base' to arguments passed to filter.
     68         *
     69         * @param string $title    The widget title.
     70         * @param array  $instance The settings for the particular instance of the widget.
     71         * @param string $id_base  Root ID for all widgets of this type.
    6972         */
    70         $title = apply_filters( 'widget_title', $instance['title'] );
     73        $title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base );
    7174
    7275        echo $before_widget;
Note: See TracChangeset for help on using the changeset viewer.