[wp-trac] [WordPress Trac] #51780: Add ability to easily get path to sized images (such as parameter to get_attached_file() or wp_get_attachment_thumb_file())

WordPress Trac noreply at wordpress.org
Fri Feb 24 00:29:09 UTC 2023


#51780: Add ability to easily get path to sized images (such as parameter to
get_attached_file() or wp_get_attachment_thumb_file())
--------------------------------------------------+------------------------
 Reporter:  paulschreiber                         |       Owner:  joedolson
     Type:  enhancement                           |      Status:  reopened
 Priority:  normal                                |   Milestone:  6.2
Component:  Media                                 |     Version:  5.5.3
 Severity:  normal                                |  Resolution:
 Keywords:  has-patch has-unit-tests 2nd-opinion  |     Focuses:
--------------------------------------------------+------------------------

Comment (by azaozz):

 Replying to [comment:23 joedolson]:
 > it only performs the additional request if the $size param isn't empty

 Hmm, true, but that's the expected use?

 In any case, why a function that works for all attachments should be
 extended in a way that doesn't work for all? Doesn't seem logical.

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


More information about the wp-trac mailing list