[wp-trac] [WordPress Trac] #44772: Optimize `get_the_post_thumbnail_url` call

WordPress Trac noreply at wordpress.org
Thu Feb 2 19:27:04 UTC 2023


#44772: Optimize `get_the_post_thumbnail_url` call
-----------------------------------------+------------------------------
 Reporter:  soulseekah                   |       Owner:  (none)
     Type:  enhancement                  |      Status:  new
 Priority:  normal                       |   Milestone:  Awaiting Review
Component:  Post Thumbnails              |     Version:
 Severity:  normal                       |  Resolution:
 Keywords:  has-patch reporter-feedback  |     Focuses:  performance
-----------------------------------------+------------------------------

Comment (by flixos90):

 +1 to what @SergeyBiryukov says. I would expect any performance impact
 here to be negligible, and the benefit of calling `get_post()` helps
 ensure that the provided post ID is actually valid.

 I would therefore advise to close this ticket.

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


More information about the wp-trac mailing list