[wp-trac] [WordPress Trac] #36982: Add image attributes and additional context to the wp_calculate_image_srcset and wp_calculate_image_sizes filters

WordPress Trac noreply at wordpress.org
Tue Feb 7 12:30:03 UTC 2017


#36982: Add image attributes and additional context to the
wp_calculate_image_srcset and wp_calculate_image_sizes filters
--------------------------+------------------------------
 Reporter:  kylereicks    |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Media         |     Version:  4.6
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |     Focuses:  template
--------------------------+------------------------------

Comment (by greatestview):

 +1

 Currently there is no way to tell exactly, which image is small and wide
 in ''wp_calculate_image_sizes''. It’s the same with
 ''wp_get_attachment_image_attributes''. I would appreciate providing the
 classes of that image as an additional argument, or maybe better, the
 whole image html code.

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


More information about the wp-trac mailing list