[wp-trac] [WordPress Trac] #52183: get_the_post_thumbnail_url function returns original url if the size didnt exist

WordPress Trac noreply at wordpress.org
Sun Feb 7 13:47:18 UTC 2021


#52183: get_the_post_thumbnail_url  function returns original url if the size didnt
exist
-----------------------------+-----------------------
 Reporter:  naveen17797      |       Owner:  audrasjb
     Type:  defect (bug)     |      Status:  accepted
 Priority:  normal           |   Milestone:  5.7
Component:  Post Thumbnails  |     Version:
 Severity:  normal           |  Resolution:
 Keywords:  has-patch        |     Focuses:  docs
-----------------------------+-----------------------
Changes (by audrasjb):

 * keywords:   => has-patch
 * owner:  (none) => audrasjb
 * version:  5.6 =>
 * status:  new => accepted
 * milestone:  Awaiting Review => 5.7


Comment:

 Hi, thanks for the patch @GeekPress,

 {{{
 @return string|false Post thumbnail URL or false if no image is available.
                      If `$size` doesn't match a registered image size, the
 original
                      thumbnail URL will be returned.
 }}}

 This proposal looks great to me. Can you please update the patch
 accordingly?

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


More information about the wp-trac mailing list