[wp-trac] [WordPress Trac] #39768: Incorrect image returned with attachment_url_to_postid()
WordPress Trac
noreply at wordpress.org
Wed Dec 25 02:34:07 UTC 2019
#39768: Incorrect image returned with attachment_url_to_postid()
------------------------------+---------------------
Reporter: ben.greeley | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone: 5.4
Component: Media | Version: 4.7.2
Severity: normal | Resolution: fixed
Keywords: has-patch commit | Focuses:
------------------------------+---------------------
Changes (by SergeyBiryukov):
* status: new => closed
* resolution: => fixed
Comment:
In [changeset:"47010" 47010]:
{{{
#!CommitTicketReference repository="" revision="47010"
Media: Make sure `attachment_url_to_postid()` performs a case-sensitive
search for the uploaded file name.
Previously, the first available match was returned, regardless of the
case, which was not always the expected result.
Props archon810, ben.greeley, tristangemus, vsamoletov, SergeyBiryukov.
Fixes #39768.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39768#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list