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

    r9612 r9709  
    5656         *
    5757         * @since BuddyPress (1.9.0)
     58         * @since BuddyPress (2.3.0) Added 'instance' and 'id_base' to arguments passed to filter.
    5859         *
    59          * @param string $title The widget title.
     60         * @param string $title    The widget title.
     61         * @param array  $instance The settings for the particular instance of the widget.
     62         * @param string $id_base  Root ID for all widgets of this type.
    6063         */
    61         $title = apply_filters( 'widget_title', $title );
     64        $title = apply_filters( 'widget_title', $instance['title'], $instance, $this->id_base );
    6265
    6366        echo $args['before_widget'];
Note: See TracChangeset for help on using the changeset viewer.