[wp-trac] [WordPress Trac] #35855: Let selective refresh component be required but be opt-in for sidebars/widgets (for now)

WordPress Trac noreply at wordpress.org
Fri Feb 26 20:01:19 UTC 2016


#35855: Let selective refresh component be required but be opt-in for
sidebars/widgets (for now)
----------------------------+--------------------------
 Reporter:  DrewAPicture    |       Owner:  westonruter
     Type:  task (blessed)  |      Status:  accepted
 Priority:  normal          |   Milestone:  4.5
Component:  Customize       |     Version:  trunk
 Severity:  normal          |  Resolution:
 Keywords:  has-patch       |     Focuses:
----------------------------+--------------------------

Comment (by westonruter):

 @DrewAPicture I think that makes sense. But `nav-menus` currently don't
 require theme support. Should theme support for them be on by default,
 with a theme needing to then explicitly `remove_theme_support( 'customize-
 selective-refresh', 'nav-menus' )`? the problem with this is that you
 can't specify sub-features when removing theme support, so the above would
 blow away not only `nav-menus` but also `widgets` and everything else.
 That's partially why I think the current Theme Support API kinda requires
 that the component be part of the theme support feature.

 The other thing to consider here is that we talked in our core dev meeting
 about removing the opt-in for widgets in the future, making them all
 selective refreshed once authors have a chance to add support as required.
 In that case, we'd just remove the `customize-selective-refresh-widgets`
 theme support and be done with it.

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


More information about the wp-trac mailing list