- Timestamp:
- 03/15/2023 08:16:46 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-templates/bp-nouveau/includes/blogs/functions.php
r13303 r13436 20 20 'slug' => 'all', // slug is used because BP_Core_Nav requires it, but it's the scope 21 21 'li_class' => array( 'selected' ), 22 'link' => bp_get_ root_domain() . '/' . bp_get_blogs_root_slug(),22 'link' => bp_get_blogs_directory_url(), 23 23 'text' => __( 'All Sites', 'buddypress' ), 24 24 'count' => bp_get_total_blog_count(), … … 44 44 // If the user can create blogs, add the create nav 45 45 if ( bp_blog_signup_enabled() ) { 46 $url = bp_get_blogs_directory_url( 47 array( 48 'create_single_item' => 1, 49 ) 50 ); 51 46 52 $nav_items['create'] = array( 47 53 'component' => 'blogs', 48 54 'slug' => 'create', // slug is used because BP_Core_Nav requires it, but it's the scope 49 55 'li_class' => array( 'no-ajax', 'site-create', 'create-button' ), 50 'link' => trailingslashit( bp_get_blogs_directory_permalink() . 'create' ),56 'link' => $url, 51 57 'text' => __( 'Create a Site', 'buddypress' ), 52 58 'count' => false,
Note: See TracChangeset
for help on using the changeset viewer.