[wp-trac] [WordPress Trac] #57578: Deprecated preg_replace() warning PHP 8.1
WordPress Trac
noreply at wordpress.org
Tue Feb 7 14:38:54 UTC 2023
#57578: Deprecated preg_replace() warning PHP 8.1
-----------------------------+-----------------------------
Reporter: ipajen | Owner: SergeyBiryukov
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 6.2
Component: Administration | Version: trunk
Severity: normal | Resolution: fixed
Keywords: php81 has-patch | Focuses:
-----------------------------+-----------------------------
Changes (by SergeyBiryukov):
* owner: (none) => SergeyBiryukov
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"55263" 55263]:
{{{
#!CommitTicketReference repository="" revision="55263"
Administration: Define the `$title` global on privacy screens.
This brings more consistency with other screens and avoids a PHP warning
in `get_plugin_page_hookname()`:
{{{
preg_replace(): Passing null to parameter #3 ($subject) of type
array|string is deprecated
}}}
Props ipajen, jrf, SergeyBiryukov.
Fixes #57578.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57578#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list