Changeset 5202 for trunk/bp-core/admin/bp-core-update.php
- Timestamp:
- 09/30/2011 08:42:53 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-update.php
r5068 r5202 266 266 267 267 function step_ms_update() { 268 global $wpdb; 269 270 // Make sure that page info is pulled from bp_get_root_blog_id() (except when in 271 // multisite mode) 272 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != bp_get_root_blog_id() ) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) ) 273 switch_to_blog( bp_get_root_blog_id() ); 274 268 275 if ( !current_user_can( 'activate_plugins' ) ) 269 276 return false; … … 337 344 </div> 338 345 339 <?php 346 <?php 347 348 restore_current_blog(); 340 349 } 341 350 … … 363 372 364 373 function step_pages() { 365 global $bp; 374 global $bp, $wpdb; 375 376 // Make sure that page info is pulled from bp_get_root_blog_id() (except when in 377 // multisite mode) 378 if ( !empty( $wpdb->blogid ) && ( $wpdb->blogid != bp_get_root_blog_id() ) && ( !defined( 'BP_ENABLE_MULTIBLOG' ) ) ) 379 switch_to_blog( bp_get_root_blog_id() ); 366 380 367 381 if ( !current_user_can( 'activate_plugins' ) ) … … 527 541 </div> 528 542 529 <?php 543 <?php 544 545 restore_current_blog(); 530 546 } 531 547
Note: See TracChangeset
for help on using the changeset viewer.