[wp-trac] [WordPress Trac] #19110: Media File Url

WordPress Trac noreply at wordpress.org
Thu May 22 23:51:38 UTC 2014


#19110: Media File Url
-------------------------+------------------------------
 Reporter:  braydonf     |       Owner:
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Media        |     Version:
 Severity:  normal       |  Resolution:  invalid
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by braydonf):

 Replying to [comment:6 dd32]:
 > !WordPress does '''not''' use the Guid field for anything other than RSS
 feeds (It used to use it for the URL to media.. And still does for
 backwards compatibility, but only if, and only if, all the other WordPress
 attachment metadata is missing (or was never added since the image was
 uploaded pre 2.3-ish)). The URL to the media is dynamically generated from
 the site url(well, Content url) and the Attachment metadata (stored as
 postmeta for the media posts).

 At some point it could be a good idea to use a hash instead of the
 'permalink' as the GUID, and to drop support of using the the GUID as a
 permalink that might break backwards compatibility. Though this would
 likely need to be part of another change that would bring larger
 advantages to support it.

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


More information about the wp-trac mailing list