[wp-trac] [WordPress Trac] #62950: PHP deprecation warning in /wp-admin/includes/class-automatic-upgrader-skin.php

WordPress Trac noreply at wordpress.org
Thu Feb 13 04:03:31 UTC 2025


#62950: PHP deprecation warning in /wp-admin/includes/class-automatic-upgrader-
skin.php
-----------------------------+------------------------------
 Reporter:  nexbridge        |       Owner:  (none)
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Awaiting Review
Component:  Upgrade/Install  |     Version:  6.7.2
 Severity:  normal           |  Resolution:
 Keywords:                   |     Focuses:
-----------------------------+------------------------------

Comment (by sainathpoojary):

 Thanks for the clarification! You’re right if the variable were truly
 uninitialized, we’d expect a different warning. It makes sense that
 $feedback might explicitly be null in some cases, leading to the
 deprecation warning when passed into str_contains() or trim().  I’ll test
 the fix with auto-updates, and if it works as expected, I’ll raise a PR.
 🚀

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


More information about the wp-trac mailing list