[wp-trac] [WordPress Trac] #56850: pluggable.php - Deprecated errors on PHP 8.1
WordPress Trac
noreply at wordpress.org
Wed Oct 19 18:30:10 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 php81 | Focuses:
------------------------------------+------------------------------
Comment (by TobiasBg):
Thanks for the background on this, @lenasterg!
I'm not sure why the login form, needs to pass empty arguments here, but I
assume that it would be "too late" to change this anyways, for backwards
compatibility reasons (as the filter hooks that run during the request)
might be overriding the calls to perform some custom authentication.
Your proposed changes do make sense, therefore.
It might be worth updating the function's docblock then as well, to
clarify that `null` is a possible parameter value/type.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/56850#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list