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

WordPress Trac noreply at wordpress.org
Thu Feb 17 15:44:17 UTC 2022


#54889: Cannot access 'Manage menus' in Navigation block toolbar when running a
classic theme
-------------------------------------------------+-------------------------
 Reporter:  noisysocks                           |       Owner:
                                                 |  hellofromTonya
     Type:  defect (bug)                         |      Status:  closed
 Priority:  normal                               |   Milestone:  5.9.1
Component:  Editor                               |     Version:
 Severity:  normal                               |  Resolution:  fixed
 Keywords:  has-patch has-screenshots commit     |     Focuses:
  dev-reviewed fixed-major                       |
-------------------------------------------------+-------------------------
Changes (by hellofromTonya):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"52756" 52756]:
 {{{
 #!CommitTicketReference repository="" revision="52756"
 Editor: Grant only admins access to the "Navigation Menus" UI for block
 and non-block themes.

 Restricts and grants access to only admin roles for the Navigation Menu UI
 screen, i.e. either directly through the URL wp-
 admin/edit.php?post_type=wp_navigation or via the Navigation block's
 "Manage menu" option (in the block's toolbar).

 It resolves 2 issues:

 - For non-block themes, fixes the issue where admins could not access the
 UI.
 - For block themes, restricts access to only admin roles, i.e. non-admins
 no longer have access to the UI.

 Non-admins will receive the "Sorry, you are not allowed to edit posts in
 this post type" error message.

 Follow-up [52069], [52145], [52330], [52400].

 Props ironprogrammer, costdev, noisysocks, talldanwp, hellofromTonya,
 manfcarlo, pyrobd.
 Merges [52755] to the 5.9 branch.
 Fixes #54889.
 }}}

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


More information about the wp-trac mailing list