Changeset 3861
- Timestamp:
- 01/24/2011 03:28:22 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-buddybar.php
r3817 r3861 236 236 237 237 // Unset subnav items for this nav item 238 if ( is _array( $bp->bp_options_nav[$parent_id] ) ) {238 if ( isset( $bp->bp_options_nav[$parent_id] ) && is_array( $bp->bp_options_nav[$parent_id] ) ) { 239 239 foreach( (array)$bp->bp_options_nav[$parent_id] as $subnav_item ) { 240 240 bp_core_remove_subnav_item( $parent_id, $subnav_item['slug'] ); … … 243 243 244 244 if ( $function = $bp->bp_nav[$parent_id]['screen_function'] ) { 245 if ( !is_object( $function[0] ) ) 245 if ( !is_object( $function[0] ) ) { 246 246 remove_action( 'wp', $function, 3 ); 247 else247 } else { 248 248 remove_action( 'wp', array( &$function[0], $function[1] ), 3 ); 249 } 249 250 } 250 251
Note: See TracChangeset
for help on using the changeset viewer.