Changeset 4257 for trunk/bp-core/admin/bp-core-admin.php
- Timestamp:
- 04/23/2011 04:46:40 PM (15 years ago)
- File:
-
- 1 edited
-
trunk/bp-core/admin/bp-core-admin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/admin/bp-core-admin.php
r4183 r4257 343 343 */ 344 344 function bp_core_admin_page_options() { 345 global $bp; 346 347 if ( !bp_is_root_blog() ) { 348 $bp->is_switched = 1; 349 switch_to_blog( BP_ROOT_BLOG ); 350 } 351 345 352 // Get the existing WP pages 346 353 $existing_pages = bp_core_get_page_meta(); … … 430 437 431 438 <?php 439 440 if ( isset( $bp->is_switched ) ) { 441 restore_current_blog(); 442 unset( $bp->is_switched ); 443 } 432 444 } 433 445
Note: See TracChangeset
for help on using the changeset viewer.