[wp-trac] [WordPress Trac] #33070: the_thumbnail_url or similar
WordPress Trac
noreply at wordpress.org
Sun Sep 20 10:01:11 UTC 2015
#33070: the_thumbnail_url or similar
-----------------------------+-----------------------
Reporter: atomicjack | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: 4.4
Component: Post Thumbnails | Version:
Severity: minor | Resolution:
Keywords: has-patch | Focuses: template
-----------------------------+-----------------------
Comment (by obenland):
It should probably be named `get_the_post_thumbnail_url()` to be in line
with `get_the_post_thumbnail()`.
I personally like to keep the return value of a function to be a single
type, so I wonder if it would make sense to return an empty string rather
than false. It's not a big deal though.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33070#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list