[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:58:04 GMT 2006

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

 Stupid Wiki Formatting, OK, here it is again:

  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

 The new patch replaces the last one, and it changes wp_delete_attachment
 to use get_attachment (for filtering).  Instead of adding the ABSPATH back
 in there, it allows get_attachment to do it.

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

More information about the wp-trac mailing list