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

WordPress Trac noreply at wordpress.org
Thu Sep 24 14:27:06 UTC 2015


#33070: the_thumbnail_url or similar
-----------------------------+-----------------------------
 Reporter:  atomicjack       |       Owner:  wonderboymusic
     Type:  enhancement      |      Status:  reopened
 Priority:  normal           |   Milestone:  4.4
Component:  Post Thumbnails  |     Version:
 Severity:  minor            |  Resolution:
 Keywords:  needs-patch      |     Focuses:  template
-----------------------------+-----------------------------
Changes (by johnbillion):

 * keywords:  has-patch => needs-patch
 * status:  closed => reopened
 * resolution:  fixed =>


Comment:

 This needs better logic and tests for when the post is invalid or the post
 has no thumbnail.

 In addition, `the_post_thumbnail_url()` should use `esc_url()`, as Frank
 pointed out.

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


More information about the wp-trac mailing list