WordPress.org

Make WordPress Core

Ticket #34065: 34065.diff

File 34065.diff, 532 bytes (added by jjeaton, 4 years ago)
  • src/wp-admin/includes/schema.php

     
    904904        if ( ! is_email( $email ) )
    905905                $errors->add( 'invalid_email', __( 'You must provide a valid email address.' ) );
    906906
     907        if ( false === $site_user ) {
     908                $errors->add( 'user_not_found', __( 'No user exists with that email address.' ) );
     909        }
     910
    907911        if ( $errors->get_error_code() )
    908912                return $errors;
    909913