[wp-trac] [WordPress Trac] #39449: `customize_loaded_components` filter is too late for themes

WordPress Trac noreply at wordpress.org
Tue Jan 3 23:31:55 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 danielbachhuber):

 Replying to [comment:1 dd32]:
 > 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 )`?

 Yes, I think this is sensible behavior.

 I know the menu components are still loaded if no menus are registered
 when the menu widget is present, but it doesn't make sense to load the
 menu components if widgets aren't available either.

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


More information about the wp-trac mailing list