Make WordPress Core

Ticket #28163: user.php.patch

File user.php.patch, 512 bytes (added by dots, 10 years ago)

We have attached the patch file. It will remove "umlauts" before existing email check.

  • src/wp-includes/user.php

     
    15261526 * @return bool|int The user's ID on success, and false on failure.
    15271527 */
    15281528function email_exists( $email ) {
    1529         if ( $user = get_user_by('email', $email) )
     1529        $sanitize_email = sanitize_email( $email );
     1530        if ( $user = get_user_by('email', $sanitize_email) )
    15301531                return $user->ID;
    15311532
    15321533        return false;