[wp-trac] [WordPress Trac] #56850: pluggable.php - Deprecated errors on PHP 8.1
WordPress Trac
noreply at wordpress.org
Wed Oct 19 11:38:30 UTC 2022
#56850: pluggable.php - Deprecated errors on PHP 8.1
------------------------------------+------------------------------
Reporter: lenasterg | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Login and Registration | Version: 6.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
------------------------------------+------------------------------
Changes (by lenasterg):
* keywords: has-patch php81 => has-patch
Comment:
Hi @TobiasBg
The {{{null}}} comes from
https://core.trac.wordpress.org/browser/trunk/src/wp-includes/user.php#L95
from inside the {{{function wp_signon}}}.
The line 95
{{{#!php
$user = wp_authenticate( $credentials['user_login'],
$credentials['user_password'] );
}}}
where both {{{$credentials['user_login'],
&$credentials['user_password']}}} are {{{NULL}}} when a user access the
wp-login.php page for first time.
The {{{wp_signon function}}} is called in
https://core.trac.wordpress.org/browser/trunk/src/wp-login.php#L1231 with
an empty array as $credentials argument.
Line 1231 is:
{{{$user = wp_signon( array(), $secure_cookie );}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56850#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list