[wp-trac] [WordPress Trac] #30988: Setting's default value doesn't apply on preview window

WordPress Trac noreply at wordpress.org
Tue Feb 3 10:14:30 UTC 2015


#30988: Setting's default value doesn't apply on preview window
--------------------------+-----------------------------
 Reporter:  Aniruddh      |       Owner:  ocean90
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.1.1
Component:  Customize     |     Version:  4.1
 Severity:  normal        |  Resolution:  fixed
 Keywords:  has-patch     |     Focuses:  administration
--------------------------+-----------------------------
Changes (by ocean90):

 * status:  reviewing => closed
 * resolution:   => fixed


Comment:

 In [changeset:"31329"]:
 {{{
 #!CommitTicketReference repository="" revision="31329"
 Ensure that `WP_Customize_Setting::value()` returns default value for
 setting if not dirty.

 There was regression introduced by #28580 where only changed (dirty)
 settings now are POST'ed to the Customizer preview.

 * Allow WP_Customize_Manager::post_value() to accept a second $default
 argument.
 * Introduce WP_Customize_Manager::unsanitized_post_values() for accessing
 previously-private member variable _post_values.
 * Do require_once instead of require for Customizer classes.
 * Add unit tests for WP_Customize_Manager and WP_Customize_Setting.

 props westonruter.
 fixes #30988.
 }}}

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


More information about the wp-trac mailing list