[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
Sat Sep 3 14:44:18 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 |
-----------------------------+------------------------
Changes (by shawnkhall):
* cc: shawnkhall (added)
Comment:
Is there a reason why it can't use filters similar to this? (for ms-
default-constants.php):
define( 'UPLOADBLOGSDIR', apply_filters( 'define_uploadblogsdir', 'wp-
content/blogs.dir' ) );
define( 'UPLOADS', apply_filters( 'define_uploads', UPLOADBLOGSDIR .
"/{$wpdb->blogid}/files/" ) );
define( 'BLOGUPLOADDIR', apply_filters( 'define_bloguploaddir',
WP_CONTENT_DIR . "/blogs.dir/{$wpdb->blogid}/files/" ) );
This method is used in the twenty eleven theme.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18489#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list