Ticket #11998: 11998.2.patch
File 11998.2.patch, 952 bytes (added by , 15 years ago) |
---|
-
wp-includes/functions.php
2136 2136 $url = trailingslashit( $siteurl ) . $upload_path; 2137 2137 } 2138 2138 2139 if ( defined('UPLOADS') && ( WP_CONTENT_DIR . '/uploads' != ABSPATH . $upload_path ) ) {2139 if ( defined('UPLOADS') && ( WP_CONTENT_DIR . '/uploads' != ABSPATH . $upload_path ) && ( isset( $switched ) && $switched === false ) ) { 2140 2140 $dir = ABSPATH . UPLOADS; 2141 2141 $url = trailingslashit( $siteurl ) . UPLOADS; 2142 2142 } 2143 2143 2144 if ( is_multisite() && ( WP_CONTENT_DIR . '/uploads' != ABSPATH . $upload_path ) ) {2144 if ( is_multisite() && ( WP_CONTENT_DIR . '/uploads' != ABSPATH . $upload_path ) && ( isset( $switched ) && $switched === false ) ) { 2145 2145 if ( defined( 'BLOGUPLOADDIR' ) ) 2146 2146 $dir = untrailingslashit(BLOGUPLOADDIR); 2147 2147 $url = str_replace( UPLOADS, 'files', $url );