[wp-trac] [WordPress Trac] #27355: Customizer: Add framework for selective refresh (partial preview refreshes)

WordPress Trac noreply at wordpress.org
Thu Jan 14 03:31:35 UTC 2016


#27355: Customizer: Add framework for selective refresh (partial preview refreshes)
----------------------------+--------------------------
 Reporter:  westonruter     |       Owner:  westonruter
     Type:  task (blessed)  |      Status:  assigned
 Priority:  normal          |   Milestone:  4.5
Component:  Customize       |     Version:  3.4
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |     Focuses:  javascript
----------------------------+--------------------------

Comment (by westonruter):

 @rabmalin Thank you. It's specifically the framework proposed here in this
 PR: https://github.com/xwp/wp-customize-partial-refresh/pull/17

 What the framework should make easy is the ability to use PHP to render
 the changes to a given setting. Let's say you have an option that contains
 a welcome message on your site. You want this message be texturized and to
 allow shortcodes to be embedded in it, and anything else that
 `the_content` filters apply. You should then be able to register a new
 Customizer control for this option, say it a `textarea`, and with
 selective refresh you can make changes to the text in the control and
 watch only the element containing the welcome message refresh, not the
 entire page, making the changes _much_ faster to appear. The framework
 introduced to Core should make it easy to do this, and the patch in the PR
 is a proposed API for this.

 Note that this does not include widgets in its scope. It is intended as
 the underlying selective-refresh framework which can be used by widgets
 and nav menus and anything else to be previewed. The existing selective
 refresh for nav menus should be re-implemented to use this framework.

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


More information about the wp-trac mailing list