[wp-trac] [WordPress Trac] #58066: PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated

WordPress Trac noreply at wordpress.org
Mon Apr 3 15:37:43 UTC 2023


#58066: PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject) of
type array|string is deprecated
--------------------------+------------------------------
 Reporter:  ebai4         |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Formatting    |     Version:  6.2
 Severity:  normal        |  Resolution:
 Keywords:  php81         |     Focuses:
--------------------------+------------------------------
Changes (by sabernhardt):

 * keywords:   => php81
 * component:  General => Formatting


Old description:

> WP version : 6.2
> PHP: 8.1.9
>
> After updating to PHP 8.1.9 I get this error, even with no active plugins
> and with the Twenty Twenty-Three theme on.
>
> PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject)
> of type array|string is deprecated in xxxxxxxx\wp-includes\formatting.php
> on line 4280

New description:

 WP version : 6.2
 PHP: 8.1.9

 After updating to PHP 8.1.9 I get this error, even with no active plugins
 and with the Twenty Twenty-Three theme on.

 `PHP Deprecated:  str_replace(): Passing null to parameter #3 ($subject)
 of type array|string is deprecated in xxxxxxxx\wp-includes\formatting.php
 on line 4280`

--

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


More information about the wp-trac mailing list