diff --git a/src/wp-admin/includes/ajax-actions.php b/src/wp-admin/includes/ajax-actions.php
index ab521ba0ad..128c6d58a8 100644
a
|
b
|
function wp_ajax_get_community_events() { |
304 | 304 | * The location is stored network-wide, so that the user doesn't have to set it on each site. |
305 | 305 | */ |
306 | 306 | if ( $ip_changed || $search ) { |
307 | | update_user_option( $user_id, 'community-events-location', $events['location'], true ); |
| 307 | update_user_meta( $user_id, 'community-events-location', $events['location'] ); |
308 | 308 | } |
309 | 309 | |
310 | 310 | wp_send_json_success( $events ); |
diff --git a/src/wp-admin/includes/upgrade.php b/src/wp-admin/includes/upgrade.php
index 7ab369dc7b..d81908fec2 100644
a
|
b
|
if ( ! function_exists( 'wp_install' ) ) : |
79 | 79 | $user_password = wp_generate_password( 12, false ); |
80 | 80 | $message = __( '<strong><em>Note that password</em></strong> carefully! It is a <em>random</em> password that was generated just for you.' ); |
81 | 81 | $user_id = wp_create_user( $user_name, $user_password, $user_email ); |
82 | | update_user_option( $user_id, 'default_password_nag', true, true ); |
| 82 | update_user_meta( $user_id, 'default_password_nag', true ); |
83 | 83 | $email_password = true; |
84 | 84 | } elseif ( ! $user_id ) { |
85 | 85 | // Password has been provided |
diff --git a/src/wp-admin/includes/user.php b/src/wp-admin/includes/user.php
index 269d64fb26..073f087d1a 100644
a
|
b
|
function default_password_nag_handler( $errors = false ) { |
464 | 464 | // get_user_setting = JS saved UI setting. else no-js-fallback code. |
465 | 465 | if ( 'hide' == get_user_setting( 'default_password_nag' ) || isset( $_GET['default_password_nag'] ) && '0' == $_GET['default_password_nag'] ) { |
466 | 466 | delete_user_setting( 'default_password_nag' ); |
467 | | update_user_option( $user_ID, 'default_password_nag', false, true ); |
| 467 | update_user_meta( $user_ID, 'default_password_nag', false ); |
468 | 468 | } |
469 | 469 | } |
470 | 470 | |
… |
… |
function default_password_nag_edit_user( $user_ID, $old_data ) { |
485 | 485 | // Remove the nag if the password has been changed. |
486 | 486 | if ( $new_data->user_pass != $old_data->user_pass ) { |
487 | 487 | delete_user_setting( 'default_password_nag' ); |
488 | | update_user_option( $user_ID, 'default_password_nag', false, true ); |
| 488 | update_user_meta( $user_ID, 'default_password_nag', false ); |
489 | 489 | } |
490 | 490 | } |
491 | 491 | |
diff --git a/src/wp-includes/script-loader.php b/src/wp-includes/script-loader.php
index 225f1869be..97a20b6ce9 100644
a
|
b
|
function wp_localize_community_events() { |
1311 | 1311 | */ |
1312 | 1312 | if ( $saved_ip_address && $current_ip_address && $current_ip_address !== $saved_ip_address ) { |
1313 | 1313 | $saved_location['ip'] = $current_ip_address; |
1314 | | update_user_option( $user_id, 'community-events-location', $saved_location, true ); |
| 1314 | update_user_meta( $user_id, 'community-events-location', $saved_location ); |
1315 | 1315 | } |
1316 | 1316 | |
1317 | 1317 | $events_client = new WP_Community_Events( $user_id, $saved_location ); |
diff --git a/src/wp-includes/user.php b/src/wp-includes/user.php
index dd5d5367ba..4be21f8c84 100644
a
|
b
|
function clean_user_cache( $user ) { |
1370 | 1370 | |
1371 | 1371 | /** |
1372 | 1372 | * Determines whether the given username exists. |
1373 | | * |
| 1373 | * |
1374 | 1374 | * For more information on this and similar theme functions, check out |
1375 | | * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ |
| 1375 | * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ |
1376 | 1376 | * Conditional Tags} article in the Theme Developer Handbook. |
1377 | 1377 | * |
1378 | 1378 | * @since 2.0.0 |
… |
… |
function username_exists( $username ) { |
1400 | 1400 | |
1401 | 1401 | /** |
1402 | 1402 | * Determines whether the given email exists. |
1403 | | * |
| 1403 | * |
1404 | 1404 | * For more information on this and similar theme functions, check out |
1405 | | * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ |
| 1405 | * the {@link https://developer.wordpress.org/themes/basics/conditional-tags/ |
1406 | 1406 | * Conditional Tags} article in the Theme Developer Handbook. |
1407 | 1407 | * |
1408 | 1408 | * @since 2.1.0 |
… |
… |
function reset_password( $user, $new_pass ) { |
2376 | 2376 | do_action( 'password_reset', $user, $new_pass ); |
2377 | 2377 | |
2378 | 2378 | wp_set_password( $new_pass, $user->ID ); |
2379 | | update_user_option( $user->ID, 'default_password_nag', false, true ); |
| 2379 | update_user_meta( $user->ID, 'default_password_nag', false ); |
2380 | 2380 | |
2381 | 2381 | /** |
2382 | 2382 | * Fires after the user's password is reset. |
… |
… |
function register_new_user( $user_login, $user_email ) { |
2480 | 2480 | return $errors; |
2481 | 2481 | } |
2482 | 2482 | |
2483 | | update_user_option( $user_id, 'default_password_nag', true, true ); //Set up the Password change nag. |
| 2483 | update_user_meta( $user->ID, 'default_password_nag', true ); |
2484 | 2484 | |
2485 | 2485 | /** |
2486 | 2486 | * Fires after a new user registration has been recorded. |