[wp-trac] [WordPress Trac] #18489: Create constants in default-constants.php for the uploads folder to allow better custom uploads location

WordPress Trac wp-trac at lists.automattic.com
Thu Sep 8 09:48:10 UTC 2011


#18489: Create constants in default-constants.php for the uploads folder to allow
better custom uploads location
-----------------------------+------------------------
 Reporter:  eddiemoya        |       Owner:  eddiemoya
     Type:  enhancement      |      Status:  reopened
 Priority:  normal           |   Milestone:
Component:  General          |     Version:  3.2.1
 Severity:  normal           |  Resolution:
 Keywords:  has-patch close  |
-----------------------------+------------------------

Comment (by shawnkhall):

 @scribu, I don't see why that matters? apply_filters is loaded via
 WPINC/plugin.php in wp-settings.php:72, the database is loaded at wp-
 settings.php:75, and the multisite constants are loaded in wp-
 settings.php:90.

 I understand that means absolutely nothing as far as wp-config.php, but
 that file is not the only place configuration can occur.

 For those of us using systems of scale, we rely heavily on database
 plugins (I personally use Multi-DB), and the sequence above would enable
 the specific filters above to be effected within WP_CONTENT_DIR/db.php

 Adding these filters within the ms_upload_constants function (ms-default-
 constants.php) would add almost no overhead, but would allow systems of
 scale to address the problems within the otherwise static constants.

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


More information about the wp-trac mailing list