[wp-trac] [WordPress Trac] #30346: Attachments not being found with attachment_url_to_postid()

WordPress Trac noreply at wordpress.org
Fri Nov 21 06:34:25 UTC 2014


#30346: Attachments not being found with attachment_url_to_postid()
------------------------------+-----------------------------
 Reporter:  bradyvercher      |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  closed
 Priority:  normal            |   Milestone:  4.1
Component:  Media             |     Version:  4.0
 Severity:  normal            |  Resolution:  fixed
 Keywords:  needs-unit-tests  |     Focuses:
------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:   => SergeyBiryukov
 * status:  new => closed
 * resolution:   => fixed


Comment:

 In [changeset:"30501"]:
 {{{
 #!CommitTicketReference repository="" revision="30501"
 Replace invalid use of ltrim() in attachment_url_to_postid() with
 substr().

 props bradyvercher.
 fixes #30346.
 }}}

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


More information about the wp-trac mailing list