[wp-trac] [WordPress Trac] #54917: Admin panel's "Customizer" sub menu is replaced with "Widgets" for block based themes

WordPress Trac noreply at wordpress.org
Wed Jan 26 07:34:36 UTC 2022


#54917: Admin panel's "Customizer" sub menu is replaced with "Widgets" for block
based themes
--------------------------+-----------------------------
 Reporter:  Rufus87       |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:  5.9
 Severity:  major         |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Hi there,

 In the last 5.9 version there is an issue related to admin panel's
 "Customize" sub-menu item for block based themes. The problem is that for
 block based themes the "Customize" sub-menu item position is 7 (for the
 old themes it is 6). However, "Widgets" sub-menu item is constantly
 registered in the exactly same 7th position and in case of block based
 themes, it overwrites "Customize" sub-menu item.

 The possible fix is to add the same condition check during "Widgets" sub-
 menu item registration, but increase position by 1:

 wp_is_block_theme() ? 8 : 7;

 Best regards

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/54917>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list