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

WordPress Trac noreply at wordpress.org
Thu Jul 6 14:35:55 UTC 2023


#58727: Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type
array|string is deprecated
-------------------------------+-------------------------------
 Reporter:  ispreview          |       Owner:  (none)
     Type:  defect (bug)       |      Status:  new
 Priority:  normal             |   Milestone:  Awaiting Review
Component:  Formatting         |     Version:
 Severity:  normal             |  Resolution:
 Keywords:  php81 needs-patch  |     Focuses:  coding-standards
-------------------------------+-------------------------------

Comment (by jrf):

 @ispreview That will need a backtrace as this is likely caused by a plugin
 or theme doing something wrong. If not, we still need to know where in
 Core to fix the incorrect function ''call'' as the function in the
 `functions.php` file is passed incorrect information, which should be
 fixed at the point the information is passed, not where it is received
 (which is where the deprecation is being thrown).

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


More information about the wp-trac mailing list