[wp-trac] [WordPress Trac] #34477: Pass the named image size to the filter in `wp_get_attachment_image_sizes()`

WordPress Trac noreply at wordpress.org
Sat Oct 31 22:33:01 UTC 2015


#34477: Pass the named image size to the filter in
`wp_get_attachment_image_sizes()`
--------------------------+-----------------------
 Reporter:  joemcgill     |       Owner:  azaozz
     Type:  defect (bug)  |      Status:  assigned
 Priority:  normal        |   Milestone:  4.4
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+-----------------------

Comment (by azaozz):

 Replying to [comment:5 joemcgill]:

 Yep, that works better. We always know the image URL so this will be
 consistent. It will be a bit harder for themes/plugins to get the size
 name, but any regexp will only run when needed, so it is more efficient.

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


More information about the wp-trac mailing list