Changeset 4600 for trunk/bp-core/bp-core-buddybar.php
- Timestamp:
- 07/04/2011 03:25:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-buddybar.php
r4599 r4600 215 215 * and this subnav item is the default for the parent item (which we check by 216 216 * comparing this subnav item's screen function with the screen function of the 217 * parent nav item in $bp->bp_nav). 217 * parent nav item in $bp->bp_nav). This condition only arises when viewing a 218 * user, since groups should always have an action set. 218 219 */ 219 220 … … 223 224 224 225 // If we *do* meet condition (2), then the added subnav item is currently being requested 225 if ( ( !empty( $bp->current_action ) && $slug == $bp->current_action ) || ( empty( $bp->current_action ) && $screen_function == $bp->bp_nav[$parent_slug]['screen_function'] ) ) { 226 if ( ( !empty( $bp->current_action ) && $slug == $bp->current_action ) || ( bp_is_user() && empty( $bp->current_action ) && $screen_function == $bp->bp_nav[$parent_slug]['screen_function'] ) ) { 227 226 228 // Before hooking the screen function, check user access 227 229 if ( $user_has_access ) {
Note: See TracChangeset
for help on using the changeset viewer.