Changeset 8571
- Timestamp:
- 07/09/2014 06:32:08 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bp-core/bp-core-functions.php
r8570 r8571 455 455 } 456 456 457 // Make sure that the pages are created on the root blog no matter which Dashboard the setup is being run on 458 if ( ! bp_is_root_blog() ) 457 // Make sure that the pages are created on the root blog no matter which 458 // dashboard the setup is being run on. 459 if ( ! bp_is_root_blog() ) { 459 460 switch_to_blog( bp_get_root_blog_id() ); 461 } 460 462 461 463 $pages = bp_core_get_directory_page_ids(); 462 464 463 465 // Delete any existing pages 464 if ( 'delete' == $existing ) {466 if ( 'delete' === $existing ) { 465 467 foreach ( (array) $pages as $page_id ) { 466 468 wp_delete_post( $page_id, true ); … … 471 473 472 474 $page_titles = array( 473 'activity' => _x( 'Activity', 'Page title for the Activity directory.', 'buddypress' ),474 'groups' => _x( 'Groups', 'Page title for the Groups directory.','buddypress' ),475 'sites' => _x( 'Sites', 'Page title for the Sites directory.','buddypress' ),476 ' activate' => _x( 'Activate', 'Page title for the user account activation screen.','buddypress' ),477 ' members' => _x( 'Members', 'Page title for the Members directory.','buddypress' ),475 'activity' => _x( 'Activity', 'Page title for the Activity directory.', 'buddypress' ), 476 'groups' => _x( 'Groups', 'Page title for the Groups directory.', 'buddypress' ), 477 'sites' => _x( 'Sites', 'Page title for the Sites directory.', 'buddypress' ), 478 'members' => _x( 'Members', 'Page title for the Members directory.', 'buddypress' ), 479 'activate' => _x( 'Activate', 'Page title for the user activation screen.', 'buddypress' ), 478 480 'register' => _x( 'Register', 'Page title for the user registration screen.', 'buddypress' ), 479 481 ); … … 528 530 529 531 // If we had to switch_to_blog, go back to the original site. 530 if ( ! bp_is_root_blog() ) 532 if ( ! bp_is_root_blog() ) { 531 533 restore_current_blog(); 534 } 532 535 } 533 536
Note: See TracChangeset
for help on using the changeset viewer.