[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
Mon Aug 22 18:08:11 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: accepted
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 3.2.1
Severity: normal | Resolution:
Keywords: has-patch close |
-----------------------------+------------------------------
Comment (by eddiemoya):
Replying to [comment:5 nacin]:
> Replying to [comment:4 GaryJ]:
> > A further consideration is whether a patch like this would also
account for uploads in a multisite setup.
>
> That was my thought as well. In multisite the upload paths are all
different. Mind you, wp_upload_dir() returns an entire array of data, not
a single scalar data point. Suggesting wontfix.
This patch should not interfere with any of that. wp_upload_dir has logic
that deals with multisite which I have not modified. All I've done is
replace instances of WP_CONTENT_DIR . '/uploads' with WP_UPLOADS_DIR,
which itself is a definition of WP_CONTENT_DIR_ . '/uploads'. The same
applies to WP_CONTENT_URL.
None of the behavior of wp_uploads_dir changes here, all that has happened
is thats the concatenation of WP_CONTENT_DIR with /uploads happens in
default-constants.php rather than being hardcoded within the function
itself.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18489#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list