[wp-trac] [WordPress Trac] #11642: Allow to define upload path and url in wp-config.php

WordPress Trac wp-trac at lists.automattic.com
Sat Feb 20 15:20:53 UTC 2010


#11642: Allow to define upload path and url in wp-config.php
-------------------------+--------------------------------------------------
 Reporter:  sirzooro     |       Owner:             
     Type:  enhancement  |      Status:  new        
 Priority:  normal       |   Milestone:  3.0        
Component:  General      |     Version:  2.9        
 Severity:  normal       |    Keywords:  needs-patch
-------------------------+--------------------------------------------------

Comment(by sivel):

 You can define the upload path in wp-config.php, not the url however.  The
 url is decided based on the relative path you provide for UPLOADS.  The
 constant you would use is UPLOADS, and it is relative to ABSPATH.

 From the code:

 {{{
     if ( defined('UPLOADS') ) {
         $dir = ABSPATH . UPLOADS;
         $url = trailingslashit( $siteurl ) . UPLOADS;
     }
 }}}

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


More information about the wp-trac mailing list