Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
12/27/2010 10:57:31 PM (15 years ago)
Author:
djpaul
Message:

Removes trailing whitespace. Fixes #2965, props cnorris23

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/admin/bp-core-upgrade.php

    r3550 r3592  
    1010// Install site options on activation
    1111bp_core_activate_site_options( array( 'bp-disable-account-deletion' => 0, 'bp-disable-avatar-uploads' => 0, 'bp-disable-blogforum-comments' => 0,  'bp-disable-forum-directory' => 0,  'bp-disable-profile-sync' => 0 ) );
    12  
     12
    1313/**
    1414 * bp_core_activate_site_options()
     
    5656            if ( $this->current_version = get_option( 'bp-db-version' ) )
    5757                $this->is_network_activate = true;
    58        
     58
    5959        $this->new_version = constant( 'BP_DB_VERSION' );
    6060        $this->setup_type = ( empty( $this->current_version ) && !(int)get_site_option( 'bp-core-db-version' ) ) ? 'new' : 'upgrade';
     
    104104        } else {
    105105            // Upgrade wizard steps
    106            
     106
    107107            if ( $this->is_network_activate )
    108108                $steps[] = __( 'Multisite Upgrade', 'buddypress' );
    109            
     109
    110110            if ( $this->current_version < $this->new_version )
    111111                $steps[] = __( 'Database Upgrade', 'buddypress' );
     
    243243    <?php
    244244    }
    245    
     245
    246246    function step_ms_upgrade() {
    247247        if ( !current_user_can( 'activate_plugins' ) )
     
    252252        else
    253253            $blogs_slug = __( 'blogs', 'buddypress' );
    254        
     254
    255255        if ( !defined( 'BP_ENABLE_MULTIBLOG' ) && is_multisite() )
    256256            $existing_pages = get_blog_option( BP_ROOT_BLOG, 'bp-pages' );
     
    262262            <p><input type="submit" value="<?php _e( 'Save &amp; Next &rarr;', 'buddypress' ) ?>" name="submit" /></p>
    263263        </div>
    264        
     264
    265265        <p><?php printf( __( 'It looks like you have just activated WordPress Multisite mode, which allows members of your BuddyPress community to have their own WordPress blogs. You can enable or disable this feature at any time at <a href="%s">Network Options</a>.', 'buddypress' ), admin_url( 'ms-options.php' ) ); ?></p>
    266        
     266
    267267        <p><?php _e( "Please select the WordPress page you would like to use to display the blog directory. You can either choose an existing page or let BuddyPress auto-create a page for you. If you'd like to manually create pages, please go ahead and do that now, you can come back to this step once you are finished.", 'buddypress' ) ?></p>
    268268
     
    281281                </td>
    282282            </tr>
    283            
     283
    284284        </table>
    285        
     285
    286286        <p><?php _e( 'Would you like to enable blog tracking, which tracks blog activity across your network?', 'buddypress' ); ?></p>
    287        
     287
    288288        <div class="left-col">
    289            
     289
    290290            <div class="component">
    291291                <h5><?php _e( "Blog Tracking", 'buddypress' ) ?></h5>
     
    298298                <img src="<?php echo plugins_url( 'buddypress/screenshot-7.gif' ) ?>" alt="Activity Streams" />
    299299                    <p><?php _e( "Track new blogs, new posts and new comments across your entire blog network.", 'buddypress' ) ?></p>
    300             </div>     
    301         </div>
    302        
     300            </div>
     301        </div>
     302
    303303        <div class="submit clear">
    304304            <p><input type="submit" value="<?php _e( 'Save &amp; Next &rarr;', 'buddypress' ) ?>" name="submit" /></p>
     
    308308            <?php wp_nonce_field( 'bpwizard_ms_upgrade' ) ?>
    309309        </div>
    310        
     310
    311311        <script type="text/javascript">
    312312            jQuery('select').click( function() {
     
    838838                if ( $current_blog->blog_id != BP_ROOT_BLOG && !defined( 'BP_ENABLE_MULTIBLOG' ) )
    839839                    switch_to_blog( BP_ROOT_BLOG );
    840    
     840
    841841                $existing_pages = get_option( 'bp-pages' );
    842842
    843843                $bp_pages = $this->setup_pages( (array)$_POST['bp_pages'] );
    844                
     844
    845845                $bp_pages = array_merge( (array)$existing_pages, (array)$bp_pages );
    846    
     846
    847847                update_option( 'bp-pages', $bp_pages );
    848848
    849849                if ( $current_blog->blog_id != BP_ROOT_BLOG )
    850850                    restore_current_blog();
    851            
     851
    852852                unset( $disabled['bp-blogs.php'] );
    853                
     853
    854854                bp_core_install( $disabled );
    855855            }
    856            
     856
    857857            update_site_option( 'bp-deactivated-components', $disabled );
    858858
     
    10451045        return false;
    10461046    }
    1047    
     1047
    10481048    function setup_pages( $pages ) {
    10491049        foreach ( $pages as $key => $value ) {
     
    10591059            }
    10601060        }
    1061        
     1061
    10621062        return $bp_pages;
    10631063    }
Note: See TracChangeset for help on using the changeset viewer.