mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
allow existing media path on main site when converting to multisite, see #12549
git-svn-id: https://develop.svn.wordpress.org/trunk@13619 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -2131,7 +2131,7 @@ function wp_upload_dir( $time = null ) {
|
||||
$url = trailingslashit( $siteurl ) . $upload_path;
|
||||
}
|
||||
|
||||
if ( defined('UPLOADS') ) {
|
||||
if ( defined('UPLOADS') && ( WP_CONTENT_DIR . '/uploads' != ABSPATH . $upload_path ) ) {
|
||||
$dir = ABSPATH . UPLOADS;
|
||||
$url = trailingslashit( $siteurl ) . UPLOADS;
|
||||
}
|
||||
@@ -4077,4 +4077,4 @@ function __return_true() {
|
||||
function __return_false() {
|
||||
return false;
|
||||
}
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user