[wp-trac] [WordPress Trac] #16268: Requirement for has_header_image() function?
WordPress Trac
noreply at wordpress.org
Wed Jun 11 17:31:33 UTC 2014
#16268: Requirement for has_header_image() function?
-------------------------+-----------------------------
Reporter: husobj | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Appearance | Version:
Severity: normal | Resolution:
Keywords: has-patch | Focuses: template
-------------------------+-----------------------------
Comment (by GunGeekATX):
Thanks for the feedback. I'll make some changes and resubmit the patch.
I too wanted to implement it as {{{return !empty(get_header_image());}}},
but it would not work in older PHP versions.
http://www.php.net//manual/en/function.empty.php
Prior to PHP 5.5, empty() only supports variables; anything else will
result in a parse error. In other words, the following will not work:
empty(trim($name)).
--
Ticket URL: <https://core.trac.wordpress.org/ticket/16268#comment:7>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list