[wp-trac] [WordPress Trac] #56850: pluggable.php - Deprecated errors on PHP 8.1

WordPress Trac noreply at wordpress.org
Wed Oct 19 11:09:53 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:
------------------------------------+------------------------------

Comment (by TobiasBg):

 Hi @lenasterg,

 thanks for looking into this!

 When getting this deprecation warning, can you see where that `null` value
 is coming from?
 A password should only ever be a string, so it might make more sense to
 add a fix to the calling function.
 With the suggested `is_string()` check, the issue is essentially just
 shifted further down, when the next operation on the still-`null`
 `$password` happens -- but then this check might just make debugging and
 finding the origin a bit harder.

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


More information about the wp-trac mailing list