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

WordPress Trac noreply at wordpress.org
Mon Feb 3 21:40:03 UTC 2014


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

Comment (by bassjobsen):

 Thanks for your explanation. With this explanation i think my original
 problem still exists. When not setting any value (or call with an empty
 array) i don't expect the default become set to an empty string. And then
 i also expected get_theme_option('color','green'); returns green and not
 an empty string.

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


More information about the wp-trac mailing list