- Timestamp:
- 06/18/2023 04:11:04 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/blogs/functions.php
r13461 r13503 28 28 if ( is_user_logged_in() ) { 29 29 $my_blogs_count = bp_get_total_blog_count_for_user( bp_loggedin_user_id() ); 30 $blogs_slug = bp_nouveau_get_component_slug( 'blogs' );31 $path_chunks = array(32 'single_item_component' => bp_rewrites_get_slug( 'members', 'member_' . $blogs_slug, $blogs_slug ),33 );34 30 35 31 // If the user has blogs create a nav item … … 39 35 'slug' => 'personal', // slug is used because BP_Core_Nav requires it, but it's the scope 40 36 'li_class' => array(), 41 'link' => bp_loggedin_user_url( $path_chunks),37 'link' => bp_loggedin_user_url( bp_members_get_path_chunks( array( bp_nouveau_get_component_slug( 'blogs' ) ) ) ), 42 38 'text' => __( 'My Sites', 'buddypress' ), 43 39 'count' => $my_blogs_count,
Note: See TracChangeset
for help on using the changeset viewer.