#57918 closed defect (bug) (fixed)
"Deprecated" on the Appearance Menu page of the classic theme.
Reported by: | nendeb55 | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.2.1 | Priority: | normal |
Severity: | normal | Version: | |
Component: | Menus | Keywords: | php81 has-patch fixed-major |
Focuses: | administration | Cc: |
Description (last modified by )
WordPress6.2 RC1-55510
PHP8.1.6
Theme Twenty Twenty-One
Deprecated: preg_replace(): Passing null to parameter #3 ($subject) of type array|string is deprecated in D:\xampp\htdocs\wp620\wp-admin\includes\plugin.php on line 2088
Deprecated does not appear in PHP 8.0.
Attachments (1)
Change History (14)
#3
follow-up:
↓ 6
@
21 months ago
- Keywords php81 added; reporter-feedback removed
#4
@
21 months ago
- Version trunk deleted
As this also occurs on WordPress 6.1.1, I'm removing trunk
as the Version
to clear Report 40.
#5
@
21 months ago
I'd target 6.2.1, we're a bit late in the release cycle and it's not a fatal, but only a deprecation warning.
#6
in reply to:
↑ 3
@
21 months ago
- Keywords has-patch added
- Milestone changed from Awaiting Review to 6.2.1
Hi there, thanks for the ticket! I was able to reproduce the issue on a clean install.
Replying to costdev:
Looks like this is similar to #57578 - same deprecation, but a different screen.
Good catch, the fix indeed looks similar to [55263].
57918.diff resolved the notice in my testing, see comment:2:ticket:57578 for a deeper investigation.
#9
@
21 months ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 55552:
Hi @nendeb55, thanks for opening this ticket.
Are you running any plugins? This might be caused by a call to
add_menu_page()
oradd_submenu_page()
with$menu_slug
set tonull
, for example.Try disabling any plugins and see if the issue is gone. If not, can you confirm whether this issue occurs in WordPress 6.1.1?