Changeset 6022 for trunk/bp-core/bp-core-filters.php
- Timestamp:
- 05/11/2012 05:38:50 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-filters.php
r5927 r6022 22 22 function bp_core_exclude_pages( $pages ) { 23 23 global $bp; 24 24 25 25 if ( bp_is_root_blog() ) { 26 26 if ( !empty( $bp->pages->activate ) ) 27 27 $pages[] = $bp->pages->activate->id; 28 28 29 29 if ( !empty( $bp->pages->register ) ) 30 30 $pages[] = $bp->pages->register->id; 31 31 32 32 if ( !empty( $bp->pages->forums ) && ( !bp_is_active( 'forums' ) || ( bp_is_active( 'forums' ) && bp_forums_has_directory() && !bp_forums_is_installed_correctly() ) ) ) 33 33 $pages[] = $bp->pages->forums->id; … … 279 279 // Get the component's ID to try and get it's name 280 280 $component_id = $component_name = bp_current_component(); 281 281 282 282 // Use the actual component name 283 283 if ( !empty( $bp->{$component_id}->name ) ) { 284 284 $component_name = $bp->{$component_id}->name; 285 285 286 286 // Fall back on the component ID (probably same as current_component) 287 287 } elseif ( !empty( $bp->{$component_id}->id ) ) {
Note: See TracChangeset
for help on using the changeset viewer.