[wp-trac] [WordPress Trac] #34736: wp_calculate_image_srcset filter: provide the individual srcset image size

WordPress Trac noreply at wordpress.org
Thu Nov 19 06:56:47 UTC 2015


#34736: wp_calculate_image_srcset filter: provide the individual srcset image size
--------------------------+------------------------
 Reporter:  kraftbj       |       Owner:  joemcgill
     Type:  defect (bug)  |      Status:  accepted
 Priority:  normal        |   Milestone:  4.4
Component:  Media         |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:
--------------------------+------------------------

Comment (by DH-Shredder):

 This seems like a legitimate use case/request. Adjusted the indentation
 for [attachment:34736.2.patch 34736.2.patch].

 Including the height here somewhere makes sense. It strikes me as odd to
 include the width twice -- both as a key, and in the size -- but I can see
 how it'd be easier to work with.

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


More information about the wp-trac mailing list