From 4ac17c6d6caca01e3818a334ed5271291dc995a4 Mon Sep 17 00:00:00 2001 From: Kevin Cristiano Date: Thu, 16 Sep 2021 09:01:01 -0400 Subject: [PATCH] ssue #153 https://github.com/stuttter/wp-multi-network/issues/153#issuecomment-920176155 --- wp-multi-network/includes/functions.php | 9 --------- 1 file changed, 9 deletions(-) diff --git a/wp-multi-network/includes/functions.php b/wp-multi-network/includes/functions.php index 008803c..f059924 100644 --- a/wp-multi-network/includes/functions.php +++ b/wp-multi-network/includes/functions.php @@ -607,15 +607,6 @@ function add_network( $args = array() ) { } $upload_dir .= '/uploads'; - if ( defined( 'MULTISITE' ) ) { - $ms_dir = '/sites/' . $new_blog_id; - } else { - $ms_dir = '/' . $new_blog_id; - } - - $upload_dir .= $ms_dir; - $upload_url .= $ms_dir; - update_blog_option( $new_blog_id, 'upload_path', $upload_dir ); update_blog_option( $new_blog_id, 'upload_url_path', $upload_url ); }