[wp-trac] [WordPress Trac] #28637: get_theme_mod returns empty string instead of default
WordPress Trac
noreply at wordpress.org
Wed Aug 19 17:59:13 UTC 2015
#28637: get_theme_mod returns empty string instead of default
----------------------------------------+-----------------------------
Reporter: philipjohn | Owner: valendesigns
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.4
Component: Customize | Version: 3.9.1
Severity: normal | Resolution:
Keywords: has-patch needs-unit-tests | Focuses: administration
----------------------------------------+-----------------------------
Comment (by obenland):
If an empty string is a valid value, why would you want to have the
default returned instead?
And yes, unit tests are needed here, good point valendesigns.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28637#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list