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

WordPress Trac noreply at wordpress.org
Tue Dec 24 17:53:20 UTC 2019


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

 * keywords:  has-patch => has-patch commit


Comment:

 Replying to [comment:10 archon810]:
 > An alternate solution, and one we went with, is to get all the rows in
 PHP and if >1, go through them and do a case sensitive match in PHP.

 Thanks, that actually seems the most straightforward option here, without
 any side effects that I can think of.

 Implemented in [attachment:"39768.3.diff"].

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


More information about the wp-trac mailing list