[wp-trac] [WordPress Trac] #58157: PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in wp-includes/formatting.php

WordPress Trac noreply at wordpress.org
Thu May 11 21:27:36 UTC 2023


#58157: PHP Deprecated: str_replace(): Passing null to parameter #3 ($subject) of
type array|string is deprecated in wp-includes/formatting.php
-----------------------------------------------+---------------------
 Reporter:  salvoaranzulla                     |       Owner:  (none)
     Type:  defect (bug)                       |      Status:  new
 Priority:  normal                             |   Milestone:  6.3
Component:  Media                              |     Version:
 Severity:  normal                             |  Resolution:
 Keywords:  php81 reporter-feedback has-patch  |     Focuses:
-----------------------------------------------+---------------------
Changes (by jrf):

 * keywords:  php81 needs-patch reporter-feedback => php81 reporter-feedback
     has-patch


Comment:

 @SergeyBiryukov I can get behind that solution. It solves the problem in a
 clean way and improves the type consistency in the code base. 👍🏻

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


More information about the wp-trac mailing list