diff --git bp-core/bp-core-update.php bp-core/bp-core-update.php
index 8b1f30e..6771235 100644
|
|
|
function bp_update_to_2_0() { |
| 358 | 358 | bp_core_install_signups(); |
| 359 | 359 | } |
| 360 | 360 | |
| 361 | | $signups = get_users( array( |
| 362 | | 'fields' => 'all_with_meta', |
| 363 | | 'meta_key' => 'activation_key', |
| 364 | | 'meta_compare' => 'EXISTS', |
| 365 | | ) ); |
| | 361 | $status_2_ids = $wpdb->get_col( "SELECT ID FROM {$wpdb->users} WHERE user_status = '2'" ); |
| 366 | 362 | |
| 367 | | if ( empty( $signups ) ) { |
| | 363 | if ( ! empty( $status_2_ids ) ) { |
| | 364 | $signups = get_users( array( |
| | 365 | 'fields' => 'all_with_meta', |
| | 366 | 'include' => $status_2_ids, |
| | 367 | ) ); |
| | 368 | } else { |
| 368 | 369 | return; |
| 369 | 370 | } |
| 370 | 371 | |