[wp-trac] [WordPress Trac] #19110: Media File Url
WordPress Trac
wp-trac at lists.automattic.com
Wed Nov 2 05:58:42 UTC 2011
#19110: Media File Url
-------------------------+-----------------------------
Reporter: braydonf | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Media | Version:
Severity: normal | Keywords:
-------------------------+-----------------------------
The media file URL includes the site URL this makes running two identical
copies of the same site problematic since it would require doing a search
and replace through a dumped database for each synchronization.
The following is stored in the guid column:
http://braydon.com/wp-content/uploads/2011/10/BGF028_500x606.jpg
My recommendation is to store in the guid column:
/wp-content/uploads/2011/10/BGF028_500x606.jpg
Which then could become:
http://braydon.com/wp-content/uploads/2011/10/BGF028_500x606.jpg
http://mirror1-of-braydon.com/wp-
content/uploads/2011/10/BGF028_500x606.jpg
http://mirron2-of-braydon.com/wp-
content/uploads/2011/10/BGF028_500x606.jpg
http://braydon.localhost/wp-content/uploads/2011/10/BGF028_500x606.jpg
Although this could cause a problem to how the guid field is to be
handled, and a new column would need to be made.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19110>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list