[wp-trac] [WordPress Trac] #30988: Setting's default value doesn't apply on preview window
WordPress Trac
noreply at wordpress.org
Wed Feb 11 06:24:03 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 fixed-major | Focuses: administration
-----------------------------------+-----------------------------
Changes (by dd32):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"31410"]:
{{{
#!CommitTicketReference repository="" revision="31410"
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, boonebgorges.
Merges [31329] [31339] [31342] [31360] to the 4.1 branch.
Fixes #30988.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/30988#comment:29>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list