WordPress.org

Make WordPress Core

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


Ignore:
Timestamp:
12/29/2017 11:24:26 AM (2 years ago)
Author:
birgire
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #42985, comment 2

    v1 v2  
    1 Within {{{wp_signon()}}} we have this part:
     1Within the {{{wp_signon()}}} function, we have this part:
    22
    33
     
    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 errors shows up for the login form.
     19If the username and password fields are both empty, then the corresponding error is overridden with {{{$user = new WP_Error( '', '' );}}}. That means no errors show 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]