[wp-trac] [WordPress Trac] #34738: Customizer preview elements lose or misplace their preview data

WordPress Trac noreply at wordpress.org
Sat Nov 21 02:11:04 UTC 2015


#34738: Customizer preview elements lose or misplace their preview data
------------------------------+--------------------------
 Reporter:  Clorith           |       Owner:  westonruter
     Type:  defect (bug)      |      Status:  accepted
 Priority:  normal            |   Milestone:  4.4
Component:  Customize         |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  has-patch commit  |     Focuses:
------------------------------+--------------------------
Changes (by westonruter):

 * keywords:  has-patch needs-unit-tests dev-feedback => has-patch commit


Comment:

 In [attachment:34738.1.diff]:

 * Add unit tests, including new assertions for
 `WP_Customize_Setting::preview()` for scalar, multidimensional, and custom
 types
 * Add unit tests for `WP_Customize_Manager::set_post_value()` and the
 related actions.
 * Add unit tests for ` WP_Customize_Widgets::call_widget_update()`.
 * Use `customize_post_value_set_{setting_id}` instead of general
 `customize_post_value_set` to
 clear_aggregated_multidimensional_preview_applied_flag.
 * Remove obsolete `WP_Customize_Setting::value()` call to
 `apply_multidimensional_preview_value()` call since now handled
 automatically via deferred-preview, and remove the new
 `apply_multidimensional_preview_value()` method since it is no longer
 needing to be called separately (due to deferred-preview being applied on
 `customize_post_value_set` action).

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


More information about the wp-trac mailing list