diff --git src/wp-includes/user.php user.php
index 566702f..a18e229 100755
old
|
new
|
function clean_user_cache( $user ) { |
1381 | 1381 | * @return int|false The user's ID on success, and false on failure. |
1382 | 1382 | */ |
1383 | 1383 | function username_exists( $username ) { |
1384 | | if ( $user = get_user_by( 'login', $username ) ) { |
| 1384 | $user = get_user_by( 'login', $username ); |
| 1385 | if ( ! empty( $user ) ) { |
1385 | 1386 | $user_id = $user->ID; |
1386 | 1387 | } else { |
1387 | 1388 | $user_id = false; |
… |
… |
function username_exists( $username ) { |
1411 | 1412 | * @return int|false The user's ID on success, and false on failure. |
1412 | 1413 | */ |
1413 | 1414 | function email_exists( $email ) { |
1414 | | if ( $user = get_user_by( 'email', $email ) ) { |
| 1415 | $user = get_user_by( 'email', $email ); |
| 1416 | if ( ! empty( $user ) ) { |
1415 | 1417 | return $user->ID; |
1416 | 1418 | } |
1417 | 1419 | return false; |
… |
… |
All at ###SITENAME### |
2804 | 2806 | */ |
2805 | 2807 | function new_user_email_admin_notice() { |
2806 | 2808 | global $pagenow; |
2807 | | if ( 'profile.php' === $pagenow && isset( $_GET['updated'] ) && $email = get_user_meta( get_current_user_id(), '_new_email', true ) ) { |
| 2809 | $email = get_user_meta( get_current_user_id(), '_new_email', true ); |
| 2810 | if ( 'profile.php' === $pagenow && isset( $_GET['updated'] ) && '' !== $email ) { |
2808 | 2811 | /* translators: %s: New email address */ |
2809 | 2812 | echo '<div class="notice notice-info"><p>' . sprintf( __( 'Your email address has not been updated yet. Please check your inbox at %s for a confirmation email.' ), '<code>' . esc_html( $email['newemail'] ) . '</code>' ) . '</p></div>'; |
2810 | 2813 | } |