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

WordPress Trac noreply at wordpress.org
Sat Mar 16 04:24:33 UTC 2013


#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:  Awaiting Review
Component:  General          |     Version:  3.2.1
 Severity:  normal           |  Resolution:
 Keywords:  has-patch close  |
-----------------------------+------------------------------
Changes (by smhmic):

 * cc: smhmic (added)


Comment:

 Eliminating certain constants may avoid some developer confusion when
 manipulating upload locations.  But without the constants added in this
 patch, there is a substantial short-circuit in wp-config's ability to
 customize the install's file structure.   It can move plugins, themes, and
 all of entire wp-content; uploads is the black sheep, and is a source of
 confusion that will not be remedied by removing the other constants. So,
 I'd say the motion to add this has a perfectly sensible reasoning.

 Sensible, and useful.  @dd32, it is true that the uploads directory
 "differs from the Content and Plugins directories in that they're needed
 to be known before plugins can be loaded" -- at which point filters can be
 used to change the upload locations as desired.  But why must a developer
 manage the uploads location differently when it can be handled the same
 way as themes and plugins, neatly, in wp-config?

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


More information about the wp-trac mailing list