[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 15:03:49 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 | Resolution:
Keywords: php81 | Focuses:
----------------------------+------------------------------
Changes (by sabernhardt):
* keywords: => php81
Old description:
> 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.
New description:
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.
--
Comment:
Possibly related: #58066
Line 4280 is at the end of the `ent2ncr()` function.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58157#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list