[wp-trac] [WordPress Trac] #26817: WP_Customize_Setting default value set to empty string by default

WordPress Trac noreply at wordpress.org
Sun Feb 2 21:43:07 UTC 2014


#26817: WP_Customize_Setting default value set to empty string by default
-------------------------+------------------------------
 Reporter:  bassjobsen   |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Appearance   |     Version:  3.8
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by obenland):

 In your example the default value in the Customizer should be `green`,
 rather than an empty string or false.

 In cases where the theme mod is not set, `get_theme_mod()` would fall back
 to `green` passed as a second argument, in all other cases it would be set
 by the default value in the Customizer.

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


More information about the wp-trac mailing list