[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 07:16:50 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:  Awaiting Review
Component:  Media           |    Version:
 Severity:  normal          |   Keywords:
  Focuses:                  |
----------------------------+-----------------------------
 I'm using WordPress 6.2 and PHP 8.1. If I go on Media page on admin (/wp-
 admin/upload.php) I see this kind of error on my PHP log:

 [19-Apr-2023 07:07:44 UTC] PHP Deprecated:  str_replace(): Passing null to
 parameter #3 ($subject) of type array|string is deprecated in .../wp-
 includes/formatting.php on line 4280

 Everytime I change page on Media page on admin, I get that PHP Deprecated
 error.

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

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


More information about the wp-trac mailing list