Make WordPress Core

Opened 2 years ago

#55719 new defect (bug)

Better error message for sites using a FSE supporting theme when visiting the old navigation menus screen

Reported by: desrosj's profile desrosj Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.9
Component: Menus Keywords: 2nd-opinion
Focuses: Cc:

Description

When a block theme that supports full site editing is active, the user will see 'Your theme does not support navigation menus or widgets.' when navigating to the old Navigation Menus screen (wp-admin/nav-menus.php).

This wp_die() notice is triggered when add_theme_support() is not called for menus and widgets (which is the case for FSE themes).

While this is accurate, it could be misleading for someone who was familiar with WordPress prior to block-based themes. A FSE theme still supports widgets and navigation menus, just through blocks. It's not unreasonable to assume some users will have this page bookmarked or that plugins will continue linking to this page for some time.

This ticket is to consider whether a different error message should be displayed when wp_is_block_theme() is true, potentially including a link back to the admin or a resource about navigation menus and widgets in a block-ified WordPress.

Change History (0)

Note: See TracTickets for help on using tickets.