[wp-trac] [WordPress Trac] #28637: get_theme_mod returns empty string instead of default
WordPress Trac
noreply at wordpress.org
Wed Oct 1 19:10:02 UTC 2014
#28637: get_theme_mod returns empty string instead of default
--------------------------+------------------------------
Reporter: philipjohn | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Customize | Version: 3.9.1
Severity: normal | Resolution:
Keywords: has-patch | Focuses: administration
--------------------------+------------------------------
Comment (by philipjohn):
Yep, the new patch address that directly obenland - get_theme_mod() isn't
changed at all. Rather, I'm updating set_theme_mod to check if the 'new'
value is an empty string. If so, it makes sure that an empty string is NOT
stored in the database. Therefore, when get_theme_mod() retrieves the
value, it'll return false.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/28637#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list