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

WordPress Trac noreply at wordpress.org
Fri Oct 7 20:46:53 UTC 2022


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

Comment (by westonruter):

 In [changeset:"54419" 54419]:
 {{{
 #!CommitTicketReference repository="" revision="54419"
 Customize: Prevent PHP notice in Customizer when using block theme.

 Use the `customize_panel_active` filter to deactivate the Menus panel
 instead of overriding the `check_capabilities` method. This ensures the
 panel remains registered but is still hidden.

 See #54888.
 Fixes #54905.
 }}}

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


More information about the wp-trac mailing list