[wp-trac] [WordPress Trac] #34458: wp_get_attachment_image_sizes filter: Make the $width variable always contain the width value
WordPress Trac
noreply at wordpress.org
Mon Oct 26 20:35:18 UTC 2015
#34458: wp_get_attachment_image_sizes filter: Make the $width variable always
contain the width value
----------------------------+-----------------------------
Reporter: jaspermdegroot | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version: trunk
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
Currently the {{{$width}}} variable of the
{{{wp_get_attachment_image_sizes}}} filter only contains a value if an
argument was passed to the {{{$width}}} parameter of
{{{wp_get_attachment_image_sizes()}}}. The attached patch makes it always
contain the width value that is used inside the function, i.e. also if it
has been retrieved from the image size.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34458>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list