[wp-trac] [WordPress Trac] #62950: PHP deprecation warning in /wp-admin/includes/class-automatic-upgrader-skin.php
WordPress Trac
noreply at wordpress.org
Wed Feb 12 14:31:50 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:
-----------------------------+------------------------------
Changes (by sainathpoojary):
* Attachment "62950.patch" added.
The issue occurred because $string was uninitialized when $feedback was
neither an error nor a string, resulting in null being passed to
str_contains() and trim(), which is deprecated in PHP 8.2. This fix
ensures $string is always initialized as an empty string before use,
preventing these warnings.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/62950>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list