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-blogs/bp-blogs-widgets.php

    r9469 r9709  
    6161         *
    6262         * @since BuddyPress (2.2.0)
     63         * @since BuddyPress (2.3.0) Added 'instance' and 'id_base' to arguments passed to filter.
    6364         *
    64          * @param string $title The widget title.
     65         * @param string $title    The widget title.
     66         * @param array  $instance The settings for the particular instance of the widget.
     67         * @param string $id_base  Root ID for all widgets of this type.
    6568         */
    66         $title = apply_filters( 'widget_title', $instance['title'] );
     69        $title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base );
    6770
    6871        echo $args['before_widget'];
Note: See TracChangeset for help on using the changeset viewer.