[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
Wed Apr 19 22:31:43 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 needs-patch reporter-feedback  |     Focuses:
-------------------------------------------------+---------------------
Changes (by SergeyBiryukov):

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


Comment:

 Hi there, thanks for the report!

 FWIW, I could not reproduce the issue on a clean install. In core,
 `ent2ncr()` is mostly applied to RSS filters but never appears to be
 called in media context.

 > I have disabled all plugins and I still see that kind of PHP Deprecated
 error.

 Does it still happen with the default theme (Twenty Twenty-Three)
 activated?

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


More information about the wp-trac mailing list