[wp-trac] [WordPress Trac] #29869: Pass $size to wp_get_attachment_image_attributes filter

WordPress Trac noreply at wordpress.org
Sun Oct 5 15:39:38 UTC 2014


#29869: Pass $size to wp_get_attachment_image_attributes filter
--------------------------+-----------------------------
 Reporter:  mattheu       |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  General       |    Version:
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 It would be useful to have access to the originally requested image size
 in the `wp_get_attachment_image_attributes` filter.

 Use case: the srcset attribute has recently been introduced - and is
 useful for adding 2x (3x etc) high res images for devices with high res
 screens. If plugins were able to access the size in this filter, it could
 be used to add this.

 Somewhat related - but not the same: #14110

--
Ticket URL: <https://core.trac.wordpress.org/ticket/29869>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list