Changeset 14510
- Timestamp:
- 05/07/2010 10:50:05 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/functions.php
r14502 r14510 2115 2115 */ 2116 2116 function wp_upload_dir( $time = null ) { 2117 global $switched; 2117 2118 $siteurl = get_option( 'siteurl' ); 2118 2119 $upload_path = get_option( 'upload_path' ); … … 2137 2138 } 2138 2139 2139 if ( defined('UPLOADS') && ( WP_CONTENT_DIR . '/uploads' != ABSPATH . $upload_path ) ) {2140 if ( defined('UPLOADS') && ( WP_CONTENT_DIR . '/uploads' != ABSPATH . $upload_path ) && ( !isset( $switched ) || $switched === false ) ) { 2140 2141 $dir = ABSPATH . UPLOADS; 2141 2142 $url = trailingslashit( $siteurl ) . UPLOADS; 2142 2143 } 2143 2144 2144 if ( is_multisite() && ( WP_CONTENT_DIR . '/uploads' != ABSPATH . $upload_path ) ) {2145 if ( is_multisite() && ( WP_CONTENT_DIR . '/uploads' != ABSPATH . $upload_path ) && ( !isset( $switched ) || $switched === false ) ) { 2145 2146 if ( defined( 'BLOGUPLOADDIR' ) ) 2146 2147 $dir = untrailingslashit(BLOGUPLOADDIR);
Note: See TracChangeset
for help on using the changeset viewer.