Skip to:
Content

BuddyPress.org

Changeset 4440


Ignore:
Timestamp:
05/29/2011 05:09:32 PM (14 years ago)
Author:
djpaul
Message:

Fix default_component value when activity component is disabled. Fixes #3182

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-members/bp-members-loader.php

    r4381 r4440  
    124124        /** Default Profile Component *****************************************/
    125125        if ( !defined( 'BP_DEFAULT_COMPONENT' ) ) {
    126             if ( isset( $bp->pages->activity ) && isset( $bp->activity->id ) )
     126            if ( bp_is_active( 'activity' ) && isset( $bp->pages->activity ) )
    127127                $bp->default_component = $bp->activity->id;
    128128            else
    129                 $bp->default_component = $bp->profile->id;
     129                $bp->default_component = ( 'xprofile' == $bp->profile->id ) ? 'profile' : $bp->profile->id;
     130
    130131        } else {
    131             $bp->default_component     = BP_DEFAULT_COMPONENT;
     132            $bp->default_component = BP_DEFAULT_COMPONENT;
    132133        }
    133134
Note: See TracChangeset for help on using the changeset viewer.