[wp-trac] [WordPress Trac] #29869: Pass $size to wp_get_attachment_image_attributes filter
WordPress Trac
noreply at wordpress.org
Sun Oct 5 16:33:31 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:
--------------------------+------------------
Comment (by DrewAPicture):
Replying to [comment:1 SergeyBiryukov]:
> `$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?
I vote we store the value of `$size` before it's (maybe) modified and pass
that to the filter.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29869#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list