[wp-trac] [WordPress Trac] #14110: Expose height and width attributes to 'wp_get_attachment_image_attributes' filter
WordPress Trac
noreply at wordpress.org
Sat Jul 5 18:55:46 UTC 2025
#14110: Expose height and width attributes to 'wp_get_attachment_image_attributes'
filter
-------------------------------------------------+-------------------------
Reporter: divinenephron | Owner:
| adamsilverstein
Type: enhancement | Status: closed
Priority: normal | Milestone: 6.8.2
Component: Media | Version: 3.0
Severity: minor | Resolution: fixed
Keywords: has-patch commit has-unit-tests | Focuses:
has-test-info |
-------------------------------------------------+-------------------------
Changes (by adamsilverstein):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"60415" 60415]:
{{{
#!CommitTicketReference repository="" revision="60415"
Media: expose height and width attributes to the
'wp_get_attachment_image_attributes' filter.
Include the image height and width in the attributes passed to the
'wp_get_attachment_image_attributes' filter. Developers can use this to
adjust the width and height attributes returned from the
'wp_get_attachment_image_attributes' function.
Props divinenephron, nacin, Sam_a, wpsmith, anatolbroder, ericlewis,
puggan, SergeyBiryukov, spacedmonkey, adamsilverstein, flixos90,
sandeepdahiya, SirLouen.
Fixes #14110.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/14110#comment:54>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list