[wp-trac] [WordPress Trac] #54916: Admin panel's "Customizer" sub menu is replaced with "Widgets" for block based themes
WordPress Trac
noreply at wordpress.org
Thu Jan 27 20:28:01 UTC 2022
#54916: 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: 5.9.1
Component: Administration | Version: 5.9
Severity: major | Resolution:
Keywords: has-patch | Focuses:
----------------------------+---------------------
Comment (by ironprogrammer):
Thanks, @rufus87!
==== Testing
I am able to replicate this issue given the following conditions:
- WordPress version is 5.9.
- Active theme is a registered block theme.
- Theme registers widget support: `add_theme_support( 'widgets' )`.
- Theme hooks the `customize_register` action.
==== Patch
Please check the patch against [https://developer.wordpress.org/coding-
standards/wordpress-coding-standards/php/ WordPress's PHP coding
standards] or a utility like `phpcs`, which should help resolve the errors
on the PR's merge check.
==== Notes
Menu item position `8` is not "reserved" for any other menu item, so this
shift does not interfere with other built-in menu items. As such, the
check for `wp_is_block_theme` may not be strictly necessary in this case.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/54916#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list