Skip to:
Content

BuddyPress.org

Changeset 9339


Ignore:
Timestamp:
01/09/2015 10:23:31 PM (7 years ago)
Author:
r-a-y
Message:

Blogs: Apply 'widget_title' filter to title of Recent Posts widget.

Props mercime, tw2113.

Fixes #6056.

File:
1 edited

Legend:

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

    r7555 r9339  
    5353            $title = '<a href="' . trailingslashit( bp_get_root_domain() ) . trailingslashit( bp_get_blogs_root_slug() ) . '">' . esc_html( $title ) . '</a>';
    5454        }
     55
     56        /**
     57         * Filters the Blogs Recent Posts widget title.
     58         *
     59         * @since BuddyPress (2.2.0)
     60         *
     61         * @param string $title The widget title.
     62         */
     63        $title = apply_filters( 'widget_title', $instance['title'] );
    5564
    5665        echo $args['before_widget'];
Note: See TracChangeset for help on using the changeset viewer.