[wp-trac] [WordPress Trac] #39768: Incorrect image returned with attachment_url_to_postid()

WordPress Trac noreply at wordpress.org
Wed Jan 29 16:34:57 UTC 2020


#39768: Incorrect image returned with attachment_url_to_postid()
------------------------------------------+-----------------------------
 Reporter:  ben.greeley                   |       Owner:  SergeyBiryukov
     Type:  defect (bug)                  |      Status:  closed
 Priority:  normal                        |   Milestone:  5.3.3
Component:  Media                         |     Version:  4.7.2
 Severity:  normal                        |  Resolution:  fixed
 Keywords:  has-patch commit fixed-major  |     Focuses:
------------------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"47132" 47132]:
 {{{
 #!CommitTicketReference repository="" revision="47132"
 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.
 Merges [47010] to the 5.3 branch.
 Fixes #39768.
 }}}

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/39768#comment:18>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list