[wp-trac] [WordPress Trac] #25156: get_custom_header() should return false when there is no header
WordPress Trac
noreply at wordpress.org
Sat Sep 14 21:19:49 UTC 2013
#25156: get_custom_header() should return false when there is no header
------------------------------+------------------------
Reporter: nacin | Owner: kovshenin
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 3.7
Component: Themes | Version:
Severity: normal | Resolution:
Keywords: has-patch commit |
------------------------------+------------------------
Comment (by nacin):
Looking at `$url = get_theme_mod( 'header_image', get_theme_support(
'custom-header', 'default-image' ) );` in get_header_image(). Seems like
we need to handle the case where get_theme_mod() returns false and there
is no default-image or default random image. Not sure if this does that.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/25156#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list