#57636 closed defect (bug) (duplicate)
Logout gives PHP warnings preg_replace() in formatting.php and trim() in pluggable.php
| Reported by: | ipajen | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 6.2 |
| Severity: | normal | Keywords: | PHP81 |
| Cc: | Focuses: |
Description
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
Change History (3)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
This is likely the same issue as #56850