WordPress.org

Make WordPress Core

Ticket #47683: 47683.diff

File 47683.diff, 537 bytes (added by mikelopez, 19 months ago)

Corrected filename for the patch.

  • src/wp-includes/user.php

    diff --git src/wp-includes/user.php src/wp-includes/user.php
    index 3d2bf939d4..2b6e28f64a 100644
    function email_exists( $email ) { 
    14361436        if ( $user ) {
    14371437                return $user->ID;
    14381438        }
    1439         return false;
     1439
     1440        /**
     1441         * Filters whether the given email exists or not.
     1442         *
     1443         * @param int|false $user_id The user's ID on success, and false on failure.
     1444         * @param string    $email   Email to check.
     1445         */
     1446        return apply_filters( 'email_exists', $user_id, $email );
    14401447}
    14411448
    14421449/**