[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
Wed Mar 16 22:31:04 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: blocker | Resolution:
Keywords: has-patch | Focuses:
----------------------------+--------------------------
Comment (by westonruter):
Replying to [comment:34 obenland]:
> That sounds like an argument to let themes add selective refresh support
the same way they add postMessage support. Which might not be the worst
compromise.
I meant in the same what they that have to do “something” to add support,
not specifically the via the mechanics of adding an additional
`...->transport = 'postMessage'` line to their theme code. That's not
applicable because opt-in for selective refresh of widgets would add
`postMessage` transport to _all_ widget-related settings, as well as being
the default transport for new widgets added. But since individual widgets
also have to indicate support to be eligible for selective refresh, the
transport can only added once both requirements are satisfied. So this is
why a more meta-level flag is needed, like a theme support feature.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/35855#comment:35>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list