[wp-trac] Re: [WordPress Trac] #2682: Remove db store of absolute path for uploads

WordPress Trac wp-trac at lists.automattic.com
Wed May 17 15:53:34 GMT 2006


#2682: Remove db store of absolute path for uploads
-----------------------------+----------------------------------------------
       Id:  2682             |      Status:  new                     
Component:  Administration   |    Modified:  Wed May 17 15:53:34 2006
 Severity:  normal           |   Milestone:  2.1                     
 Priority:  normal           |     Version:  2.1                     
    Owner:  ryanscheuermann  |    Reporter:  ryanscheuermann         
-----------------------------+----------------------------------------------
Changes (by ryanscheuermann):

  * owner:  anonymous => ryanscheuermann

Comment:

 I've created a new patch for this issue.  I think it should handle most of
 the previous concerns.  Here is what it does:

 1. creates new function (wp_attach_upload) for attaching uploads with
 action hook
 2. creates new function (get_attachment) for retrieving attachments with
 filter hook
 3. deprecates get_udims for wp_shrink_dimensions
 4. refactors inline-uploading.php to use new functions
 5. removes the db storage of 'file' from serialized array in
 _wp_attachment_metadata (uses _wp_attached_file instead - allows easier
 migration if storing full path in DB (no byte counts))
 6. refactors other functions to use get_attachment (for filtering)
 7. removes ABSPATH storage in wp_attach_upload, and adds it back in
 get_attachment

-- 
Ticket URL: <http://trac.wordpress.org/ticket/2682>
WordPress Trac <http://wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list