[wp-trac] [WordPress Trac] #33070: the_thumbnail_url or similar
WordPress Trac
noreply at wordpress.org
Sat Sep 5 22:06:09 UTC 2015
#33070: the_thumbnail_url or similar
-----------------------------+-----------------------------
Reporter: atomicjack | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: Post Thumbnails | Version:
Severity: minor | Resolution:
Keywords: has-patch | Focuses: template
-----------------------------+-----------------------------
Changes (by johnbillion):
* keywords: has-patch dev-feedback => has-patch
* version: 4.2.2 =>
* type: feature request => enhancement
* milestone: Awaiting Review => Future Release
Comment:
Replying to [comment:14 atomicjack]:
> I actually don't know how to update a patch on here... I just followed
what I've seen others do.
You should just re-generate the patch and upload it again with the same
file name. Trac will append a number to the end of the file if one of the
same name already exists.
When you use Git to generate a patch, there's no need to commit the change
and then generate a patch from that. See [http://scribu.net/wordpress/svn-
patches-from-git.html Scribu's guide to creating SVN-compatible patches
from Git].
Regarding the actual functions you're suggesting, I think they do have
value and they're kind of expected.
swissspidy's [attachment:33070.diff] looks good.
`get_post_thumbnail_url()` should add the following so a `WP_Post` object
can be passed too:
`$post_id = get_post( $post_id );`
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33070#comment:15>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list