[wp-trac] [WordPress Trac] #36633: Customizer Doesn't Save Defaults in The Database for a Theme

WordPress Trac noreply at wordpress.org
Fri Apr 22 12:12:22 UTC 2016


#36633: Customizer Doesn't Save Defaults in The Database for a Theme
--------------------------+-----------------------------
 Reporter:  mrahmadawais  |      Owner:
     Type:  enhancement   |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Customize     |    Version:  trunk
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 Customizer doesn't save setting's `default` parameters in the database
 until unless the end user opens up the customizer and saves the settings.

 The `default` property only works when the settings are saved at least
 once. When a user installs the theme with customizer settings that enable
 or disable features, there are no defaults values for settings saved in
 the DB until unless user opens the customizer and saves the settings.

 Here look at this. I am using a radio control to enable or disable the
 social icons box in the header. When theme is first installed there is no
 social box even when the setting's `default` is set to `enable`.

 [[Image(https://i.imgur.com/N2jmvO4.png)]]

 and here is the social box being displayed in the header right when I
 click customize (Note: I have not even saved the settings yet).

 [[Image(https://i.imgur.com/ynQxWSv.png)]]

--
Ticket URL: <https://core.trac.wordpress.org/ticket/36633>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list