- Timestamp:
- 03/27/2023 06:19:06 PM (18 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/blogs/functions.php
r13436 r13442 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 ); 30 34 31 35 // If the user has blogs create a nav item … … 35 39 'slug' => 'personal', // slug is used because BP_Core_Nav requires it, but it's the scope 36 40 'li_class' => array(), 37 'link' => bp_loggedin_user_ domain() . bp_nouveau_get_component_slug( 'blogs'),41 'link' => bp_loggedin_user_url( $path_chunks ), 38 42 'text' => __( 'My Sites', 'buddypress' ), 39 43 'count' => $my_blogs_count,
Note: See TracChangeset
for help on using the changeset viewer.