Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Always allow accessing edit.php?post_type=wp_navigation page #2219

Conversation

noisysocks
Copy link
Member

The Navigation block is supported in both block themes and classic themes, so it is incorrect to only allow access to
edit.php?post_type=wp_navigation when the current theme is a block theme.

This fixes a bug where clicking on 'Manage menus' in the toolbar of a Navigation block takes you an error page when running a classic theme.

Trac ticket: https://core.trac.wordpress.org/ticket/54889


This Pull Request is for code review only. Please keep all other discussion in the Trac ticket. Do not merge this Pull Request. See GitHub Pull Requests for Code Review in the Core Handbook for more details.

The Navigation block is supported in both block themes and classic
themes, so it is incorrect to only allow access to
edit.php?post_type=wp_navigation when the current theme is a block
theme.

This fixes a bug where clicking on 'Manage menus' in the toolbar of a
Navigation block takes you an error page when running a classic theme.
@hellofromtonya
Copy link
Contributor

Closing as #2327 is preferred.

@noisysocks noisysocks deleted the fix/manage-menus-link-when-using-classic-theme branch February 21, 2022 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants