Changeset 13441 for trunk/src/bp-core/bp-core-template.php
- Timestamp:
- 03/23/2023 07:35:38 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-template.php
r13436 r13441 520 520 $url = bp_rewrites_get_url( 521 521 array( 522 'component_id' => bp_get_search_slug(), 522 'component_id' => 'core', 523 'community_search' => 1, 523 524 ) 524 525 ); … … 3643 3644 foreach ( $bp->{$component}->nav->get_item_nav() as $nav_menu ) { 3644 3645 // Get the correct menu link. See https://buddypress.trac.wordpress.org/ticket/4624. 3645 $link = bp_loggedin_user_domain() ? str_replace( bp_loggedin_user_domain(), bp_displayed_user_domain(), $nav_menu->link ) : trailingslashit( bp_displayed_user_domain() . $nav_menu->link ); 3646 $link = $nav_menu->link; 3647 if ( bp_loggedin_user_url() ) { 3648 $link = str_replace( bp_loggedin_user_url(), bp_displayed_user_url(), $nav_menu->link ); 3649 } 3646 3650 3647 3651 // Add this menu.
Note: See TracChangeset
for help on using the changeset viewer.