Skip to:
Content

BuddyPress.org

Ticket #6765: 6765-02a.patch

File 6765-02a.patch, 3.9 KB (added by imath, 4 years ago)
  • src/bp-activity/classes/class-bp-activity-component.php

    diff --git src/bp-activity/classes/class-bp-activity-component.php src/bp-activity/classes/class-bp-activity-component.php
    index 29dda02..2c64243 100644
    class BP_Activity_Component extends BP_Component { 
    115115                        'slug'                  => BP_ACTIVITY_SLUG,
    116116                        'root_slug'             => isset( $bp->pages->activity->slug ) ? $bp->pages->activity->slug : BP_ACTIVITY_SLUG,
    117117                        'has_directory'         => true,
    118                         'directory_title'       => _x( 'Site-Wide Activity', 'component directory title', 'buddypress' ),
     118                        'directory_title'       => isset( $bp->pages->activity->title ) ? $bp->pages->activity->title : _x( 'Site-Wide Activity', 'component directory title', 'buddypress' ),
    119119                        'notification_callback' => 'bp_activity_format_notifications',
    120120                        'search_string'         => __( 'Search Activity...', 'buddypress' ),
    121121                        'global_tables'         => $global_tables,
  • src/bp-blogs/classes/class-bp-blogs-component.php

    diff --git src/bp-blogs/classes/class-bp-blogs-component.php src/bp-blogs/classes/class-bp-blogs-component.php
    index 69dfe37..946c36c 100644
    class BP_Blogs_Component extends BP_Component { 
    7070                        'slug'                  => BP_BLOGS_SLUG,
    7171                        'root_slug'             => isset( $bp->pages->blogs->slug ) ? $bp->pages->blogs->slug : BP_BLOGS_SLUG,
    7272                        'has_directory'         => is_multisite(), // Non-multisite installs don't need a top-level Sites directory, since there's only one site.
    73                         'directory_title'       => _x( 'Sites', 'component directory title', 'buddypress' ),
     73                        'directory_title'       => isset( $bp->pages->blogs->title ) ? $bp->pages->blogs->title : _x( 'Sites', 'component directory title', 'buddypress' ),
    7474                        'notification_callback' => 'bp_blogs_format_notifications',
    7575                        'search_string'         => __( 'Search sites...', 'buddypress' ),
    7676                        'autocomplete_all'      => defined( 'BP_MESSAGES_AUTOCOMPLETE_ALL' ),
  • src/bp-groups/classes/class-bp-groups-component.php

    diff --git src/bp-groups/classes/class-bp-groups-component.php src/bp-groups/classes/class-bp-groups-component.php
    index 355ab8c..f35bd23 100644
    class BP_Groups_Component extends BP_Component { 
    164164                        'slug'                  => BP_GROUPS_SLUG,
    165165                        'root_slug'             => isset( $bp->pages->groups->slug ) ? $bp->pages->groups->slug : BP_GROUPS_SLUG,
    166166                        'has_directory'         => true,
    167                         'directory_title'       => _x( 'Groups', 'component directory title', 'buddypress' ),
     167                        'directory_title'       => isset( $bp->pages->groups->title ) ? $bp->pages->groups->title : _x( 'Groups', 'component directory title', 'buddypress' ),
    168168                        'notification_callback' => 'groups_format_notifications',
    169169                        'search_string'         => _x( 'Search Groups...', 'Component directory search', 'buddypress' ),
    170170                        'global_tables'         => $global_tables,
  • src/bp-members/classes/class-bp-members-component.php

    diff --git src/bp-members/classes/class-bp-members-component.php src/bp-members/classes/class-bp-members-component.php
    index 92a2c85..adc9b2f 100644
    class BP_Members_Component extends BP_Component { 
    113113                        'slug'            => BP_MEMBERS_SLUG,
    114114                        'root_slug'       => isset( $bp->pages->members->slug ) ? $bp->pages->members->slug : BP_MEMBERS_SLUG,
    115115                        'has_directory'   => true,
    116                         'directory_title' => _x( 'Members', 'component directory title', 'buddypress' ),
     116                        'directory_title' => isset( $bp->pages->members->title ) ? $bp->pages->members->title : _x( 'Members', 'component directory title', 'buddypress' ),
    117117                        'search_string'   => __( 'Search Members...', 'buddypress' ),
    118118                        'global_tables'   => array(
    119119                                'table_name_last_activity' => bp_core_get_table_prefix() . 'bp_activity',