Ticket #3582: 3582.01.patch
| File 3582.01.patch, 1.3 KB (added by , 15 years ago) |
|---|
-
bp-core/bp-core-filters.php
function bp_modify_page_title( $title, $sep, $seplocation ) { 299 299 if ( !bp_current_component() ) 300 300 $title = sprintf( __( '%s Directory', 'buddypress' ), bp_get_name_from_root_slug( bp_members_slug() ) ); 301 301 else 302 $title = sprintf( __( '%s Directory', 'buddypress' ), bp_get_name_from_root_slug( ) );302 $title = sprintf( __( '%s Directory', 'buddypress' ), bp_get_name_from_root_slug( bp_get_root_slug() ) ); 303 303 304 304 // Sign up page 305 305 } elseif ( bp_is_register_page() ) { -
bp-core/bp-core-template.php
function bp_root_slug( $component = '' ) { 652 652 653 653 // Component is active 654 654 if ( !empty( $bp->active_components[$component] ) ) { 655 $component_name = $bp->active_components[$component];656 655 657 656 // Component has specific root slug 658 if ( !empty( $bp->{$component _name}->root_slug ) ) {659 $root_slug = $bp->{$component _name}->root_slug;657 if ( !empty( $bp->{$component}->root_slug ) ) { 658 $root_slug = $bp->{$component}->root_slug; 660 659 } 661 660 } 662 661