[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
Sun May 14 18:44:01 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: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.3
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: php81 has-patch needs-dev-note | Focuses:
--------------------------------------------+-----------------------------
Comment (by SergeyBiryukov):
In [changeset:"55756" 55756]:
{{{
#!CommitTicketReference repository="" revision="55756"
Tests: Remove expectation of a deprecation notice from
`WP_Posts_List_Table` tests.
With `get_the_author()` returning an empty string instead of `null` if
called before `$authordata` is set, and no longer causing a PHP 8.1 "null
to non-nullable" deprecation notice, there is no need for these tests to
ignore the notice.
Follow-up to [51968], [55755].
See #58157.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/58157#comment:19>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list