[wp-trac] [WordPress Trac] #33386: Media GUID should never be treated as the filename or URL

WordPress Trac noreply at wordpress.org
Tue Sep 15 02:49:14 UTC 2015


#33386: Media GUID should never be treated as the filename or URL
--------------------------+-----------------------------
 Reporter:  rmccue        |       Owner:  wonderboymusic
     Type:  defect (bug)  |      Status:  closed
 Priority:  normal        |   Milestone:  4.4
Component:  Media         |     Version:
 Severity:  normal        |  Resolution:  fixed
 Keywords:                |     Focuses:
--------------------------+-----------------------------
Changes (by wonderboymusic):

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


Comment:

 In [changeset:"34163"]:
 {{{
 #!CommitTicketReference repository="" revision="34163"
 Don't ever use the `guid` value when retrieving URLs for media, use
 `wp_get_attachment_url()`. Use `get_attached_file()` for path to file.

 Fixes #33386.
 }}}

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


More information about the wp-trac mailing list