[wp-trac] [WordPress Trac] #57636: Logout gives PHP warnings preg_replace() in formatting.php and trim() in pluggable.php
WordPress Trac
noreply at wordpress.org
Sun Feb 5 15:57:54 UTC 2023
#57636: Logout gives PHP warnings preg_replace() in formatting.php and trim() in
pluggable.php
----------------------------+-----------------------------
Reporter: ipajen | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: trunk
Severity: normal | Keywords: PHP81
Focuses: |
----------------------------+-----------------------------
If a Admin user logs out and WP_DEBUG_DISPLAY is set true following
warnings is given in PHP 8.1 in a fresh WP installation nightly
6.2-alpha-55225
{{{
Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of
type array|string is deprecated in /public_html/blog/wp-
includes/formatting.php on line 5398
Deprecated: trim(): Passing null to parameter #1 ($string) of type string
is deprecated in /public_html/blog/wp-includes/pluggable.php on line 600
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57636>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list