[wp-trac] [WordPress Trac] #39487: Default to 'transport'=>'postMessage' for a setting associated with a selective refresh partial

WordPress Trac noreply at wordpress.org
Fri Jan 6 04:56:36 UTC 2017


#39487: Default to 'transport'=>'postMessage' for a setting associated with a
selective refresh partial
-----------------------------+-----------------------------
 Reporter:  danielbachhuber  |       Owner:
     Type:  defect (bug)     |      Status:  new
 Priority:  normal           |   Milestone:  Future Release
Component:  Customize        |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  needs-patch      |     Focuses:
-----------------------------+-----------------------------
Changes (by westonruter):

 * keywords:  dev-feedback => needs-patch
 * milestone:  Awaiting Review => Future Release


Comment:

 This makes sense to me.

 One possible implementation would be to add a `foreach` loop in
 `\WP_Customize_Manager::prepare_controls()`  which can loop over all of
 the registered partials and to get their associated settings, and if an
 setting has `refresh` as its transport, then it could be overridden to
 `postMessage`.

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


More information about the wp-trac mailing list