Changeset 7347 for trunk/bp-core/bp-core-loader.php
- Timestamp:
- 08/12/2013 10:30:52 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-loader.php
r7277 r7347 39 39 * 40 40 * @since BuddyPress (1.5) 41 *42 * @global BuddyPress $bp43 41 */ 44 42 private function bootstrap() { 45 global $bp;43 $bp = buddypress(); 46 44 47 45 /** … … 128 126 * 129 127 * @since BuddyPress (1.5) 130 *131 * @global BuddyPress $bp132 128 */ 133 129 public function setup_globals( $args = array() ) { 134 global $bp;130 $bp = buddypress(); 135 131 136 132 /** Database **********************************************************/ … … 192 188 * 193 189 * @since BuddyPress (1.5) 194 *195 * @global BuddyPress $bp196 190 */ 197 191 public function setup_nav( $main_nav = array(), $sub_nav = array() ) { 198 global $bp;192 $bp = buddypress(); 199 193 200 194 // If xprofile component is disabled, revert to WordPress profile 201 195 if ( !bp_is_active( 'xprofile' ) ) { 202 203 // Define local variable204 $sub_nav = array();205 196 206 197 // Fallback values if xprofile is disabled … … 244 235 */ 245 236 function bp_setup_core() { 246 global $bp; 247 $bp->core = new BP_Core(); 237 buddypress()->core = new BP_Core(); 248 238 } 249 239 add_action( 'bp_setup_components', 'bp_setup_core', 2 );
Note: See TracChangeset
for help on using the changeset viewer.