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

WordPress Trac noreply at wordpress.org
Mon Jan 12 21:11:14 UTC 2015


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

 * keywords:  needs-patch => needs-testing needs-unit-tests has-patch


Comment:

 In [attachment:30988.diff]:

  * Add `$default` param to `WP_Customize_Manager::post_value()` (and add
 protected `WP_Customize_Manager::parse_post_data()` method)
  * Update `WP_Customize_Setting::_preview_filter()` to use original or
 default value if no `post_value` supplied for setting

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


More information about the wp-trac mailing list