[wp-trac] [WordPress Trac] #59940: PHP Deprecated Errors In Core
WordPress Trac
noreply at wordpress.org
Tue Nov 21 03:38:26 UTC 2023
#59940: PHP Deprecated Errors In Core
-------------------------------+-----------------------------
Reporter: jmorti | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 6.4
Severity: normal | Keywords:
Focuses: php-compatibility |
-------------------------------+-----------------------------
Hi, I updated my server to PHP 8 and started getting errors in the debug
log that you might want to look into. WordPress is updated so I'm afraid
these bugs were missed. You can't pass NULL to these two functions
anymore. Thanks.
PHP Deprecated: strpos(): Passing null to parameter #1 ($haystack) of
type string is deprecated in /wp-includes/functions.php on line 7241
PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of
type array|string is deprecated in /wp-includes/functions.php on line 2187
--
Ticket URL: <https://core.trac.wordpress.org/ticket/59940>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list