[wp-trac] [WordPress Trac] #39449: `customize_loaded_components` filter is too late for themes
WordPress Trac
noreply at wordpress.org
Tue Jan 3 23:24:59 UTC 2017
#39449: `customize_loaded_components` filter is too late for themes
-----------------------------+------------------------------
Reporter: danielbachhuber | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version:
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses:
-----------------------------+------------------------------
Comment (by dd32):
> I want to remove nav menus from the Customizer when the theme doesn't
make use of widgets or menus.
For that specific use-case of what you're requesting here, wouldn't it be
better for the Customizer to just not register the menu components `if ( !
$supports_widgets && ! $menu_locations )`?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39449#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list