[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
Tue Mar 15 20:03:02 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 MH Themes):


 selective refresh for widgets is quite a major change as this possibly
 will break thousands of themes out there, at least in the customizer. Of
 course it isn't much of an issue for the default themes, but as you know,
 there are plenty of much more complex themes out there with JS based
 widgets like sliders, social widgets or else.

 As it is now in beta 3, selective refresh for widgets is enabled by
 default and that leads to a situation where all widgets with JS
 functionality don't work anymore in the customizer out of the box. There
 is a pretty good chance that many theme authors won't have this change on
 their radar, at least in short term for WP 4.5 and enabling this by
 default could cause some confusing and also lots of support requests from
 users who wonder why their widgets don't appear anymore in the customizer
 after updating to WP 4.5.

 I think the best route to take would be to not enable selective refresh
 for widgets out of the box and then give theme authors a way to enable it
 for their widgets that are compatible with selective refresh. That would
 ensure a smooth transition as eventually most theme authors will add
 compatibility over time to keep their themes competitive and ensure that
 their themes work well with the customizer. Enabling it by default could
 be quite an adventure - at least short term. :-)

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

More information about the wp-trac mailing list