[wp-trac] [WordPress Trac] #14110: Expose height and width attributes to 'wp_get_attachment_image_attributes' filter
WordPress Trac
noreply at wordpress.org
Mon Jul 7 17:08:13 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 fixed-major dev-reviewed |
-------------------------------------------------+-------------------------
Changes (by audrasjb):
* status: reopened => closed
* resolution: => fixed
Comment:
In [changeset:"60420" 60420]:
{{{
#!CommitTicketReference repository="" revision="60420"
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.
Reviewed by audrasjb.
Merges [60415] to the 6.8 branch.
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:56>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list