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

WordPress Trac noreply at wordpress.org
Sun Oct 5 16:07:09 UTC 2014


#29869: Pass $size to wp_get_attachment_image_attributes filter
--------------------------+------------------
 Reporter:  mattheu       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.1
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------
Changes (by SergeyBiryukov):

 * component:  General => Media
 * milestone:  Awaiting Review => 4.1


Comment:

 `$size` cannot be an array at that point, see [source:tags/4.0/src/wp-
 includes/media.php#L702 line 702].

 Should we pass that `1024x768`-like string to the filter, or the original
 requested array?

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


More information about the wp-trac mailing list