[wp-trac] [WordPress Trac] #54888: Remove Customizer's Menus section when block theme is active.

WordPress Trac noreply at wordpress.org
Mon Jan 24 02:50:44 UTC 2022


#54888: Remove Customizer's Menus section when block theme is active.
----------------------------------------+---------------------
 Reporter:  hellofromTonya              |       Owner:  (none)
     Type:  defect (bug)                |      Status:  new
 Priority:  normal                      |   Milestone:  5.9
Component:  Customize                   |     Version:
 Severity:  normal                      |  Resolution:
 Keywords:  has-testing-info has-patch  |     Focuses:
----------------------------------------+---------------------

Comment (by costdev):

 == Test Report

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

 === Steps to test block themes

 1. Start with pre 5.9 version, such as 5.8.3.
 2. Activate a default theme such as TT1 (Twenty Twenty-One).
 3. Add a Main Menu by going to `Appearance > Menus` and creating a menu
 and assign it to the primary menu.
 4. Open Customizer's Menu section by going to `Appearance > Customize >
 Menus`.
 5. Upgrade to 5.9 RC3.
 6. Activate TT2 (Twenty Twenty-Two) by going to `Appearance > Themes`.
 7. Refresh `Customizer` and then reopen `Menus` panel.
 Notice the preview is showing the default header nav of page listings, but
 the Menus section is still showing the previous assigned Main Menu. ✅
 8. Apply [https://github.com/WordPress/wordpress-develop/pull/2217 PR
 2217].
 9. Refresh `Customizer`.
 10. The `Menus` panel is not shown. ✅

 === Steps to test classic themes

 1. Switch to Twenty Twenty-One.
 2. Comment out `register_nav_menus()` and `register_sidebar()` in `wp-
 content/themes/twentytwentyone/functions.php`.
 3. View `Customizer`.
 4. The `Menus` panel is shown. ✅
 5. Apply [https://github.com/WordPress/wordpress-develop/pull/2217 PR
 2217].
 6. Refresh `Customizer`.
 7. The `Menus` panel is not shown. ✅

 === Results
 [https://github.com/WordPress/wordpress-develop/pull/2217 PR 2217]
 successfully removes the `Menus` panel from the Customizer for block
 themes and classic themes that do not support `menus` or `widgets`. ✅

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


More information about the wp-trac mailing list