Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #42985, comment 2


Ignore:
Timestamp:
12/29/2017 11:23:28 AM (4 years ago)
Author:
birgire
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #42985, comment 2

    initial v1  
    1717[https://core.trac.wordpress.org/browser/tags/4.9/src/wp-includes/user.php#L90 Source]
    1818
    19 If the username and password fields are both empty, then the corresponding error is overridden with {{{$user = new WP_Error( '', '' );}}}. That means no error shows up.
     19If the username and password fields are both empty, then the corresponding error is overridden with {{{$user = new WP_Error( '', '' );}}}. That means no errors shows up for the login form.
    2020
    2121If that would not be the case then we would get the login form shaking and the corresponding error messages. See [attachment:empty_username_password_errors.JPG]