Skip to:
Content

BuddyPress.org

Changeset 8195


Ignore:
Timestamp:
03/28/2014 11:47:39 PM (10 years ago)
Author:
imath
Message:

Clean up bp_update_to_2_0() and BP_Members_Admin class

Improve code formatting

props johnjamesjacoby

See #5374

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bp-core/bp-core-update.php

    r8124 r8195  
    343343    global $wpdb;
    344344
    345     /** Install activity tables for 'last_activity' **********************/
     345    /** Install activity tables for 'last_activity' ***************************/
     346
    346347    bp_core_install_activity_streams();
    347348
    348     /** Migrate 'last_activity' data *************************************/
     349    /** Migrate 'last_activity' data ******************************************/
    349350
    350351    bp_last_activity_migrate();
    351352
    352     /** Migrate signups data *********************************************/
     353    /** Migrate signups data **************************************************/
    353354
    354355    if ( bp_get_signup_allowed() && ! is_multisite() ) {
     
    380381            $user_email = sanitize_email( $signup->user_email );
    381382
    382             $args = array(
     383            BP_Signup::add( array(
    383384                'user_login'     => $user_login,
    384385                'user_email'     => $user_email,
     
    386387                'activation_key' => $signup->activation_key,
    387388                'meta'           => $meta
    388             );
    389 
    390             BP_Signup::add( $args );
     389            ) );
    391390
    392391            // Deleting these options will remove signups from users count
    393392            delete_user_option( $signup->ID, 'capabilities' );
    394             delete_user_option( $signup->ID, 'user_level' );
    395         }
    396     }
    397 
    398     /** Add BP options to the options table ******************************/
     393            delete_user_option( $signup->ID, 'user_level'   );
     394        }
     395    }
     396
     397    /** Add BP options to the options table ***********************************/
     398
    399399    bp_add_options();
    400400}
  • trunk/bp-members/bp-members-admin.php

    r8162 r8195  
    167167                add_action( 'pre_user_query', array( $this, 'remove_signups_from_user_query'),  10, 1 );
    168168            }
    169 
     169           
     170            // Reorganise the views navigation in users.php and signups page
    170171            if ( current_user_can( $this->capability ) ) {
    171                 // Reorganise the views navigation in users.php and signups page
    172172                add_filter( "views_{$this->users_screen}", array( $this, 'signup_filter_view' ),    10, 1 );
    173173                add_filter( 'set-screen-option',           array( $this, 'signup_screen_options' ), 10, 3 );
Note: See TracChangeset for help on using the changeset viewer.