[wp-trac] [WordPress Trac] #10390: attachments should store the WP uploads path that was configured when they were uploaded

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 15 23:49:04 UTC 2009


#10390: attachments should store the WP uploads path that was configured when they
were uploaded
-------------------------------+--------------------------------------------
 Reporter:  Denis-de-Bernardy  |       Owner:       
     Type:  enhancement        |      Status:  new  
 Priority:  normal             |   Milestone:  2.9  
Component:  Media              |     Version:  2.8.1
 Severity:  normal             |    Keywords:       
-------------------------------+--------------------------------------------

Comment(by Denis-de-Bernardy):

 Or rather, what needs to be done is, we store the current value of
 get_option(upload_dir) or whatever the useful function is, over in
 post_meta for that particular attachment.

 That way, if the folder is changed later on, we still have the correct url
 -- through wp_get_attachment_url() or whatever it is, which would then use
 the meta instead of the generic function.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10390#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list