[wp-trac] [WordPress Trac] #52417: Make filename checks less strict in `wp_image_src_get_dimensions`
WordPress Trac
noreply at wordpress.org
Tue Feb 2 15:26:28 UTC 2021
#52417: Make filename checks less strict in `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 commit | Focuses:
------------------------------+------------------------
Changes (by joemcgill):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"50144" 50144]:
{{{
#!CommitTicketReference repository="" revision="50144"
Media: Make filename checks less strict in 'wp_image_src_get_dimensions'.
This modifies the check for full size files so that only the basename is
compared with the image `src` to avoid misses whenever the `src` path has
been modified.
Props ianmjones.
Fixes: #52417.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/52417#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list