[wp-trac] [WordPress Trac] #12639: upload_url_path is always overwritten in function wp_upload_dir

WordPress Trac wp-trac at lists.automattic.com
Sat May 29 01:56:33 UTC 2010


#12639: upload_url_path is always overwritten in function wp_upload_dir
--------------------------+-------------------------------------------------
 Reporter:  jimmcq        |        Owner:        
     Type:  defect (bug)  |       Status:  closed
 Priority:  high          |    Milestone:  3.0   
Component:  Upload        |      Version:  3.0   
 Severity:  major         |   Resolution:  fixed 
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by jimmcq):

 I'm not really following how I can define UPLOADS to be a path completely
 outside of the Wordpress install with '''$dir = ABSPATH . UPLOADS;'''

 That puts it right back under the Wordpress install.

 ----

 Also I don't see how to have the upload_url point to a different server
 with '''$url = trailingslashit( $siteurl ) . UPLOADS;'''

 What am I missing here and how can the UPLOADS constant help me around
 that?

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


More information about the wp-trac mailing list