additional checks on allow existing media path, see #12549
git-svn-id: https://develop.svn.wordpress.org/trunk@13631 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
372f453254
commit
29e618f33a
@ -2136,7 +2136,7 @@ function wp_upload_dir( $time = null ) {
|
||||
$url = trailingslashit( $siteurl ) . UPLOADS;
|
||||
}
|
||||
|
||||
if ( is_multisite() ) {
|
||||
if ( is_multisite() && ( WP_CONTENT_DIR . '/uploads' != ABSPATH . $upload_path ) ) {
|
||||
if ( defined( 'BLOGUPLOADDIR' ) )
|
||||
$dir = untrailingslashit(BLOGUPLOADDIR);
|
||||
$url = str_replace( UPLOADS, 'files', $url );
|
||||
|
Loading…
Reference in New Issue
Block a user