[wp-trac] [WordPress Trac] #33366: if (get_theme_mod()) returns false if 0
WordPress Trac
noreply at wordpress.org
Fri Aug 14 13:19:14 UTC 2015
#33366: if (get_theme_mod()) returns false if 0
--------------------------+----------------------
Reporter: karlikdesign | Owner:
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Customize | Version: 4.2.4
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Comment (by celloexpressions):
I would also suggest setting the default return value in the 2nd argument
of the get_theme_mod() call, which would also result in more predictable
behavior:
{{{
get_theme_mod( 'apw_header_cta_padding_bottom', 0 );
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33366#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list