[wp-trac] [WordPress Trac] #2682: Remove db store of absolute path
for uploads
WordPress Trac
wp-trac at lists.automattic.com
Fri Apr 21 21:19:12 GMT 2006
#2682: Remove db store of absolute path for uploads
----------------------------+-----------------------------------------------
Id: 2682 | Status: new
Component: Administration | Modified: Fri Apr 21 21:19:12 2006
Severity: normal | Milestone: 2.1
Priority: normal | Version: 2.1
Owner: anonymous | Reporter: ryanscheuermann
----------------------------+-----------------------------------------------
I don't know about anybody else, but this annoys the people who migrate WP
installs from one server to another. The current code for uploading files
stores the absolute path to the file in the database (postmeta) when it's
possible to just store the relative path.
The way it is now, the code serializes an array into the database, and
when migrating, you have to update the byte counts in the DB for the
uploads to display on the new server. By using relative paths off the
ABSPATH variable, this is unnecessary.
I've attached a patch, but it needs serious testing.
--
Ticket URL: <http://trac.wordpress.org/ticket/2682>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list