Changeset 21823 for trunk/wp-includes/ms-default-constants.php
- Timestamp:
- 09/11/2012 10:22:20 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/ms-default-constants.php
r19712 r21823 11 11 * Defines Multisite upload constants. 12 12 * 13 * Exists for backward compatibility with legacy file-serving through 14 * wp-includes/ms-files.php (wp-content/blogs.php in MU). 15 * 13 16 * @since 3.0.0 14 17 */ 15 function ms_upload_constants( 18 function ms_upload_constants() { 16 19 global $wpdb; 20 21 if ( ! get_site_option( 'ms_files_rewriting' ) ) 22 return; 17 23 18 24 /** @since 3.0.0 */ … … 25 31 // Uploads dir relative to ABSPATH 26 32 define( 'UPLOADS', UPLOADBLOGSDIR . "/{$wpdb->blogid}/files/" ); 27 if ( 'wp-content/blogs.dir' == UPLOADBLOGSDIR )33 if ( 'wp-content/blogs.dir' == UPLOADBLOGSDIR && ! defined( 'BLOGUPLOADDIR' ) ) 28 34 define( 'BLOGUPLOADDIR', WP_CONTENT_DIR . "/blogs.dir/{$wpdb->blogid}/files/" ); 29 35 } … … 75 81 * Defines Multisite file constants. 76 82 * 83 * Exists for backward compatibility with legacy file-serving through 84 * wp-includes/ms-files.php (wp-content/blogs.php in MU). 85 * 77 86 * @since 3.0.0 78 87 */ 79 function ms_file_constants( 88 function ms_file_constants() { 80 89 /** 81 90 * Optional support for X-Sendfile header
Note: See TracChangeset
for help on using the changeset viewer.