Changeset 4240 for trunk/bp-core/bp-core-buddybar.php
- Timestamp:
- 04/22/2011 09:09:23 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/bp-core-buddybar.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-buddybar.php
r4155 r4240 171 171 'site_admin_only' => false, // Can only site admins see this nav item? 172 172 'position' => 90, // Index of where this nav item should be positioned 173 'screen_function' => false // The name of the function to run when clicked 173 'screen_function' => false, // The name of the function to run when clicked 174 'link' => '' // The link for the subnav item; optional, not usually required. 174 175 ); 175 176 … … 181 182 return false; 182 183 184 if ( empty( $link ) ) 185 $link = $parent_url . $slug; 186 183 187 // If this is for site admins only and the user is not one, don't create the subnav item 184 188 if ( $site_admin_only && !is_super_admin() ) … … 190 194 $bp->bp_options_nav[$parent_slug][$slug] = array( 191 195 'name' => $name, 192 'link' => $parent_url . $slug . '/',196 'link' => trailingslashit( $link ), 193 197 'slug' => $slug, 194 198 'css_id' => $item_css_id,
Note: See TracChangeset
for help on using the changeset viewer.