Skip to:
Content

BuddyPress.org

Changeset 8571


Ignore:
Timestamp:
07/09/2014 06:32:08 PM (11 years ago)
Author:
johnjamesjacoby
Message:

Code formatting improvements to bp_core_add_page_mappings(). See #5747.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-functions.php

    r8570 r8571  
    455455    }
    456456
    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() ) {
    459460        switch_to_blog( bp_get_root_blog_id() );
     461    }
    460462
    461463    $pages = bp_core_get_directory_page_ids();
    462464
    463465    // Delete any existing pages
    464     if ( 'delete' == $existing ) {
     466    if ( 'delete' === $existing ) {
    465467        foreach ( (array) $pages as $page_id ) {
    466468            wp_delete_post( $page_id, true );
     
    471473
    472474    $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' ),
    478480        'register' => _x( 'Register', 'Page title for the user registration screen.', 'buddypress' ),
    479481    );
     
    528530
    529531    // 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() ) {
    531533        restore_current_blog();
     534    }
    532535}
    533536
Note: See TracChangeset for help on using the changeset viewer.