diff --git src/bp-members/classes/class-bp-members-component.php src/bp-members/classes/class-bp-members-component.php
index 01659b3a2..20c3eccee 100644
|
|
|
class BP_Members_Component extends BP_Component { |
| 232 | 232 | */ |
| 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; |
| 241 | 239 | } |
| 242 | 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 | } |
| | 250 | } |
| | 251 | |
| 243 | 252 | /** Canonical Component Stack **************************************** |
| 244 | 253 | */ |
| 245 | 254 | |