Changeset 21892
- Timestamp:
- 09/18/2012 06:07:18 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-default-constants.php
r21881 r21892 25 25 return; 26 26 27 /** @since 3.0.0 */28 27 // Base uploads dir relative to ABSPATH 29 28 if ( !defined( 'UPLOADBLOGSDIR' ) ) 30 29 define( 'UPLOADBLOGSDIR', 'wp-content/blogs.dir' ); 31 30 32 /** @since 3.0.0 */ 33 if ( !defined( 'UPLOADS' ) ) { 31 // The main site in a post-MU network uses wp-content/uploads. 32 // This used to be handled in wp_upload_dir() by ignoring UPLOADS for this case. Avoid defining it instead. 33 if ( ! defined( 'UPLOADS' ) ) { 34 if ( ! ( is_main_site() && defined( 'MULTISITE' ) ) ) 35 define( 'UPLOADS', UPLOADBLOGSDIR . "/{$wpdb->blogid}/files/" ); 36 34 37 // Uploads dir relative to ABSPATH 35 define( 'UPLOADS', UPLOADBLOGSDIR . "/{$wpdb->blogid}/files/" );36 38 if ( 'wp-content/blogs.dir' == UPLOADBLOGSDIR && ! defined( 'BLOGUPLOADDIR' ) ) 37 39 define( 'BLOGUPLOADDIR', WP_CONTENT_DIR . "/blogs.dir/{$wpdb->blogid}/files/" );
Note: See TracChangeset
for help on using the changeset viewer.