Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
05/11/2012 05:38:50 PM (13 years ago)
Author:
boonebgorges
Message:

Pinking shears in Core component

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-filters.php

    r5927 r6022  
    2222function bp_core_exclude_pages( $pages ) {
    2323    global $bp;
    24    
     24
    2525    if ( bp_is_root_blog() ) {
    2626        if ( !empty( $bp->pages->activate ) )
    2727            $pages[] = $bp->pages->activate->id;
    28    
     28
    2929        if ( !empty( $bp->pages->register ) )
    3030            $pages[] = $bp->pages->register->id;
    31    
     31
    3232        if ( !empty( $bp->pages->forums ) && ( !bp_is_active( 'forums' ) || ( bp_is_active( 'forums' ) && bp_forums_has_directory() && !bp_forums_is_installed_correctly() ) ) )
    3333            $pages[] = $bp->pages->forums->id;
     
    279279        // Get the component's ID to try and get it's name
    280280        $component_id = $component_name = bp_current_component();
    281        
     281
    282282        // Use the actual component name
    283283        if ( !empty( $bp->{$component_id}->name ) ) {
    284284            $component_name = $bp->{$component_id}->name;
    285            
     285
    286286        // Fall back on the component ID (probably same as current_component)
    287287        } elseif ( !empty( $bp->{$component_id}->id ) ) {
Note: See TracChangeset for help on using the changeset viewer.