Ticket #32158: 32158.diff
File 32158.diff, 616 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/user.php
1899 1899 * check if current email and new email are the same, or not, and check `email_exists` 1900 1900 * accordingly. 1901 1901 */ 1902 if ( ( ! $update || ( ! empty( $old_user_data ) && $user_email !== $old_user_data->user_email) )1902 if ( ( ! $update || ( ! empty( $old_user_data ) && strcasecmp( $user_email, $old_user_data->user_email ) !== 0 ) ) 1903 1903 && ! defined( 'WP_IMPORTING' ) 1904 1904 && email_exists( $user_email ) 1905 1905 ) {