Skip to:
Content

BuddyPress.org


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

    r9458 r9709  
    8181         *
    8282         * @since BuddyPress (1.8.0)
     83         * @since BuddyPress (2.3.0) Added 'instance' and 'id_base' to arguments passed to filter.
    8384         *
    84          * @param string $title The widget title.
     85         * @param string $title    The widget title.
     86         * @param array  $instance The settings for the particular instance of the widget.
     87         * @param string $id_base  Root ID for all widgets of this type.
    8588         */
    86         $title = apply_filters( 'widget_title', $instance['title'] );
     89        $title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base );
    8790
    8891        echo $before_widget;
Note: See TracChangeset for help on using the changeset viewer.