Changeset 12179
- Timestamp:
- 07/02/2018 05:18:56 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-members/classes/class-bp-members-component.php
r11940 r12179 233 233 if ( bp_displayed_user_has_front_template() ) { 234 234 $bp->default_component = 'front'; 235 } elseif ( defined( 'BP_DEFAULT_COMPONENT' ) && BP_DEFAULT_COMPONENT ) {236 $bp->default_component = BP_DEFAULT_COMPONENT;237 235 } elseif ( bp_is_active( 'activity' ) && isset( $bp->pages->activity ) ) { 238 236 $bp->default_component = bp_get_activity_slug(); 239 237 } else { 240 238 $bp->default_component = ( 'xprofile' === $bp->profile->id ) ? 'profile' : $bp->profile->id; 239 } 240 241 if ( defined( 'BP_DEFAULT_COMPONENT' ) && BP_DEFAULT_COMPONENT ) { 242 $default_component = BP_DEFAULT_COMPONENT; 243 if ( 'profile' === $default_component ) { 244 $default_component = 'xprofile'; 245 } 246 247 if ( bp_is_active( $default_component ) ) { 248 $bp->default_component = BP_DEFAULT_COMPONENT; 249 } 241 250 } 242 251
Note: See TracChangeset
for help on using the changeset viewer.