[wp-trac] [WordPress Trac] #33070: the_thumbnail_url or similar
WordPress Trac
noreply at wordpress.org
Wed Jul 22 15:19:55 UTC 2015
#33070: the_thumbnail_url or similar
-----------------------------+------------------------------
Reporter: atomicjack | Owner:
Type: feature request | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Post Thumbnails | Version: 4.2.2
Severity: minor | Resolution:
Keywords: has-patch | Focuses: template
-----------------------------+------------------------------
Changes (by atomicjack):
* severity: normal => minor
Comment:
Replying to [comment:7 swissspidy]:
> From the previous ticket:
>
> > I don't see the point of having to add another function just to get
the URL when there is already a function to do that.
>
> Agree with that one. 1 function call instead of 2 doesn't make a huge
difference. I don't see the need for that additional function. But I'm
open for other opinions.
>
> Besides that, for your use case I recommend `the_post_thumbnail` and its
`post_thumbnail_html` filter.
It maintains a standard that new developers and users of WordPress can
feel comfortable with.
If someone is dipping into designing a new theme or something, they're
going to be using the_title, the_content, etc. Then it comes too wanting
to grab the URL of the thumbnail... they search the forums, find the
current functions being explained, but struggle to work it to how they
desire, after all, they feel it is basic just to grab the URL of the
image, and really, it should be.
It's a minor, minor change, that makes it easier for people coming on to
WordPress, and also slightly reduces the amount of code and allows for
more concise code.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33070#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list