Changeset 8195 for trunk/bp-core/bp-core-update.php
- Timestamp:
- 03/28/2014 11:47:39 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bp-core/bp-core-update.php
r8124 r8195 343 343 global $wpdb; 344 344 345 /** Install activity tables for 'last_activity' **********************/ 345 /** Install activity tables for 'last_activity' ***************************/ 346 346 347 bp_core_install_activity_streams(); 347 348 348 /** Migrate 'last_activity' data ************************************* /349 /** Migrate 'last_activity' data ******************************************/ 349 350 350 351 bp_last_activity_migrate(); 351 352 352 /** Migrate signups data ********************************************* /353 /** Migrate signups data **************************************************/ 353 354 354 355 if ( bp_get_signup_allowed() && ! is_multisite() ) { … … 380 381 $user_email = sanitize_email( $signup->user_email ); 381 382 382 $args =array(383 BP_Signup::add( array( 383 384 'user_login' => $user_login, 384 385 'user_email' => $user_email, … … 386 387 'activation_key' => $signup->activation_key, 387 388 'meta' => $meta 388 ); 389 390 BP_Signup::add( $args ); 389 ) ); 391 390 392 391 // Deleting these options will remove signups from users count 393 392 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 399 399 bp_add_options(); 400 400 }
Note: See TracChangeset
for help on using the changeset viewer.