Changeset 14680 for trunk/wp-includes/functions.php
- Timestamp:
- 05/15/2010 09:53:18 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/functions.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r14649 r14680 2118 2118 $upload_path = get_option( 'upload_path' ); 2119 2119 $upload_path = trim($upload_path); 2120 $main_override = false; 2120 2121 if ( empty($upload_path) ) { 2121 2122 $dir = WP_CONTENT_DIR . '/uploads'; … … 2124 2125 if ( 'wp-content/uploads' == $upload_path ) { 2125 2126 $dir = WP_CONTENT_DIR . '/uploads'; 2127 $main_override = defined( 'MULTISITE' ) && is_main_site(); 2126 2128 } elseif ( 0 !== strpos($dir, ABSPATH) ) { 2127 2129 // $dir is absolute, $upload_path is (maybe) relative to ABSPATH … … 2137 2139 } 2138 2140 2139 if ( defined('UPLOADS') && ( WP_CONTENT_DIR . '/uploads' != ABSPATH . $upload_path ) && ( !isset( $switched ) || $switched === false ) ) {2141 if ( defined('UPLOADS') && ( !$main_override || WP_CONTENT_DIR . '/uploads' != ABSPATH . $upload_path ) && ( !isset( $switched ) || $switched === false ) ) { 2140 2142 $dir = ABSPATH . UPLOADS; 2141 2143 $url = trailingslashit( $siteurl ) . UPLOADS; 2142 2144 } 2143 2145 2144 if ( is_multisite() && ( WP_CONTENT_DIR . '/uploads' != ABSPATH . $upload_path ) && ( !isset( $switched ) || $switched === false ) ) {2146 if ( is_multisite() && ( !$main_override || WP_CONTENT_DIR . '/uploads' != ABSPATH . $upload_path ) && ( !isset( $switched ) || $switched === false ) ) { 2145 2147 if ( defined( 'BLOGUPLOADDIR' ) ) 2146 2148 $dir = untrailingslashit(BLOGUPLOADDIR);
Note: See TracChangeset
for help on using the changeset viewer.