[wp-trac] [WordPress Trac] #51865: Add filter to `wp_image_src_get_dimensions`
WordPress Trac
noreply at wordpress.org
Tue Feb 2 02:57:39 UTC 2021
#51865: Add filter to `wp_image_src_get_dimensions`
-------------------------------------------------+-------------------------
Reporter: joemcgill | Owner: joemcgill
Type: enhancement | Status: closed
Priority: normal | Milestone: 5.7
Component: Media | Version:
Severity: normal | Resolution: fixed
Keywords: has-patch needs-unit-tests needs- | Focuses:
dev-note |
-------------------------------------------------+-------------------------
Changes (by joemcgill):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"50134" 50134]:
{{{
#!CommitTicketReference repository="" revision="50134"
Media: Add filter to wp_image_src_get_dimensions.
This adds a new filter, `wp_image_src_get_dimensions` to the
`wp_image_src_get_dimensions()` function to correct the dimensions
returned for a file whenever WordPress isn't able to correctly get the
dimensions from attachment metadata.
Fixes #51865.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51865#comment:17>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list