[wp-trac] [WordPress Trac] #27112: Add widget management to the customizer
WordPress Trac
noreply at wordpress.org
Sun Feb 23 23:13:08 UTC 2014
#27112: Add widget management to the customizer
----------------------------+------------------
Reporter: nacin | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.9
Component: Widgets | Version:
Severity: normal | Resolution:
Keywords: | Focuses:
----------------------------+------------------
Comment (by westonruter):
We discussed on IRC the removal of the current partial preview refreshing
of widgets in favor of generalizing the functionality so that any
customize control can add support for doing so; this partial preview
refresh is key to keeping things DRY by eliminating the current
requirement that all setting updates via `postMessage` transport re-
implement all rendering logic in JavaScript for components that are
normally written out in PHP—but even when the render logic is attempted to
be written in JS, it will never be able to account for any filters added
in PHP.
For instance, with such partial preview refreshes, the Navigation Menu
control needn't do a full refresh of the preview: the menu's container
could be targeted for a partial refresh, where the new menu gets rendered
via an Ajax request and the response replaces the old menu.
@nacin: I've created a branch for Widget Customizer and have ripped out
the partial preview refreshing: https://github.com/x-team/wp-widget-
customizer/compare/without-partial-previews
Hopefully this is helpful to you. Let me know if there's anything I can do
to help with the merge.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/27112#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list