[wp-trac] [WordPress Trac] #57458: Login Warnings

WordPress Trac noreply at wordpress.org
Fri Jan 13 18:37:45 UTC 2023


#57458: Login Warnings
------------------------------------+-----------------------------
 Reporter:  jablonczay              |       Owner:  (none)
     Type:  defect (bug)            |      Status:  new
 Priority:  normal                  |   Milestone:  Future Release
Component:  Login and Registration  |     Version:
 Severity:  normal                  |  Resolution:
 Keywords:  php81 needs-patch       |     Focuses:
------------------------------------+-----------------------------
Changes (by johnbillion):

 * keywords:  php81 => php81 needs-patch
 * version:  6.1.1 =>
 * milestone:  Awaiting Review => Future Release


Comment:

 I believe this is ultimately caused by this call to wp_signon() with an
 empty array of credentials: https://github.com/WordPress/wordpress-
 develop/blob/4912e0107dddbc34bdac71a1a7bc9f8e21335742/src/wp-
 login.php#L1233.

 Inside `wp_signon()` the `user_login` and `user_password` elements are
 implicitly set to null here: https://github.com/WordPress/wordpress-
 develop/blob/4912e0107dddbc34bdac71a1a7bc9f8e21335742/src/wp-
 includes/user.php#L67 and these null values propagate down to
 `preg_replace()` and `trim()`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57458#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list