diff --git src/wp-includes/user.php src/wp-includes/user.php
index 3d2bf939d4..2b6e28f64a 100644
|
|
function email_exists( $email ) { |
1436 | 1436 | if ( $user ) { |
1437 | 1437 | return $user->ID; |
1438 | 1438 | } |
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 ); |
1440 | 1447 | } |
1441 | 1448 | |
1442 | 1449 | /** |