Ticket #3582: 3582.02.patch
| File 3582.02.patch, 1.4 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]; 655 // Backward compatibility: in legacy plugins, the canonical component id 656 // was stored as an array value in $bp->active_components 657 $component_name = '1' == $bp->active_components[$component] ? $component : $bp->active_components[$component]; 656 658 657 659 // Component has specific root slug 658 660 if ( !empty( $bp->{$component_name}->root_slug ) ) {