Skip to:
Content

BuddyPress.org

Ticket #7259: 7259.patch

File 7259.patch, 983 bytes (added by hnla, 10 years ago)

Adds apply_filter for default titles array.

  • src/bp-core/bp-core-functions.php

     
    703703 * @return array
    704704 */
    705705function bp_core_get_directory_page_default_titles() {
    706         return array(
     706        $page_default_titles = array(
    707707                'activity' => _x( 'Activity', 'Page title for the Activity directory.',       'buddypress' ),
    708708                'groups'   => _x( 'Groups',   'Page title for the Groups directory.',         'buddypress' ),
    709709                'blogs'    => _x( 'Sites',    'Page title for the Sites directory.',          'buddypress' ),
     
    711711                'activate' => _x( 'Activate', 'Page title for the user activation screen.',   'buddypress' ),
    712712                'register' => _x( 'Register', 'Page title for the user registration screen.', 'buddypress' ),
    713713        );
     714
     715        return apply_filters('bp_core_get_directory_page_default_titles', $page_default_titles);
    714716}
    715717
    716718/**