Ticket #5436: 5436.01.patch
File 5436.01.patch, 990 bytes (added by , 11 years ago) |
---|
-
bp-core/bp-core-loader.php
class BP_Core extends BP_Component { 261 261 function bp_setup_core() { 262 262 buddypress()->core = new BP_Core(); 263 263 } 264 add_action( 'bp_ setup_components', 'bp_setup_core', 2);264 add_action( 'bp_loaded', 'bp_setup_core', 0 ); -
bp-members/bp-members-loader.php
class BP_Members_Component extends BP_Component { 118 118 119 119 if ( !defined( 'BP_DEFAULT_COMPONENT' ) ) { 120 120 if ( bp_is_active( 'activity' ) && isset( $bp->pages->activity ) ) { 121 $bp->default_component = bp_get_activity_slug();121 $bp->default_component = $bp->activity->id; 122 122 } else { 123 123 $bp->default_component = ( 'xprofile' === $bp->profile->id ) ? 'profile' : $bp->profile->id; 124 124 }