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

WordPress Trac noreply at wordpress.org
Wed Sep 23 15:47:46 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:  has-patch        |     Focuses:  template
-----------------------------+-----------------------------

Comment (by pathartl):

 Shouldn't `get_the_post_thumbnail_url()` return `false` if no URL is
 found? Returning `''` seems backwards. Example precedent, `get_the_ID()`
 will return `false` if there is no valid `$post` object.
 `the_post_thumbnail_url()` would have to be changed also to test for
 `false` from `get_the_post_thumbnail_url()`.

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


More information about the wp-trac mailing list