[wp-trac] [WordPress Trac] #33070: the_thumbnail_url or similar

WordPress Trac noreply at wordpress.org
Sun Sep 20 09:42:46 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
-----------------------------+-----------------------
Changes (by swissspidy):

 * keywords:  has-patch needs-unit-tests => has-patch
 * milestone:  Future Release => 4.4


Comment:

 Attached a new patch, now with unit tests too! I also added a `$size`
 parameter that defaults to 'post-thumbnail'. I think that's kinda
 expected. You never only want the full URL.

 If #33878 gets in, the functions can be updated to use the proposed
 `get_attachment_image_url()` function.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/33070#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list