[wp-trac] [WordPress Trac] #28637: get_theme_mod returns empty string instead of default
WordPress Trac
noreply at wordpress.org
Wed Aug 19 17:43:25 UTC 2015
#28637: get_theme_mod returns empty string instead of default
--------------------------+-----------------------------
Reporter: philipjohn | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4
Component: Customize | Version: 3.9.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses: administration
--------------------------+-----------------------------
Comment (by obenland):
I'm on the fence about this. Why would an empty string not be a valid
value for a theme mod? `false` and `0` are, correct?
On the other hand, when would an empty string be of any use?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28637#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list