- Timestamp:
- 06/18/2023 04:11:04 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/members/functions.php
r13442 r13503 78 78 // If friends component is active and the user has friends 79 79 if ( bp_is_active( 'friends' ) && bp_get_total_friend_count( bp_loggedin_user_id() ) ) { 80 $friends_slug = bp_nouveau_get_component_slug( 'friends' );81 $path_chunks = array(82 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_' . $friends_slug, $friends_slug ),83 'single_item_action' => bp_rewrites_get_slug( 'members', 'member_' . $friends_slug . '_my_friends', 'my-friends' ),84 );85 86 80 $nav_items['personal'] = array( 87 81 'component' => 'members', 88 82 'slug' => 'personal', // slug is used because BP_Core_Nav requires it, but it's the scope 89 83 'li_class' => array(), 90 'link' => bp_loggedin_user_url( $path_chunks),84 'link' => bp_loggedin_user_url( bp_members_get_path_chunks( array( bp_nouveau_get_component_slug( 'friends' ), 'my-friends' ) ) ), 91 85 'text' => __( 'My Friends', 'buddypress' ), 92 86 'count' => bp_get_total_friend_count( bp_loggedin_user_id() ),
Note: See TracChangeset
for help on using the changeset viewer.