[wp-trac] [WordPress Trac] #54889: Cannot access 'Manage menus' in Navigation block toolbar when running a classic theme

WordPress Trac noreply at wordpress.org
Mon Jan 24 05:34:03 UTC 2022


#54889: Cannot access 'Manage menus' in Navigation block toolbar when running a
classic theme
--------------------------+---------------------
 Reporter:  noisysocks    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  5.9
Component:  Editor        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+---------------------

Comment (by costdev):

 == Test Report

 === Env
 * WordPress: trunk and [https://github.com/WordPress/wordpress-
 develop/pull/2219 PR 2219]
 * Chrome 97.0.4692.71
 * Windows 10
 * Theme: Twenty Twenty-One
 * Block Editor
 * Plugin: None activated

 === Steps to test

 As an `administrator`:
 1. Navigate to `Posts > Add New`.
 2. Insert a `Navigation` block.
 3. Click `Select menu`.
 4. Select a menu.
 5. Click `Select menu`.
 6. Click `Manage menus`.
 7. The following is displayed:
  Sorry, you are not allowed to edit posts in this post type.
 8. Apply [https://github.com/WordPress/wordpress-develop/pull/2219 PR
 2219].
 9. Repeat steps 1-6.
 10. The `Navigation Menus` screen should appear.
 11. Repeat steps 1-5 as an `editor`.
 12. The `Manage menus` option should not be available.

 === Results
 - [https://github.com/WordPress/wordpress-develop/pull/2219 PR 2219]
 successfully grants access to the `Navigation Menus` screen for
 `administrators`. ✅
 - [https://github.com/WordPress/wordpress-develop/pull/2219 PR 2219]
 successfully hides the `Manage menus` option from `editors`. ✅
 - [https://github.com/WordPress/wordpress-develop/pull/2219 PR 2219]
 continues to display a permissions notice to `editors` when browsing
 directly to `wp-admin/edit.php?post_type=wp_navigation`. ❌
 === Notes
 Editors can still manually browse to `wp-
 admin/edit.php?post_type=wp_navigation`. This shows the `Navigation Menus`
 screen and the available menus but does not allow them to interact with
 the items. The `Bulk Edit` dropdown is available, but does nothing.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54889#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list