The main site of a secondary network should not use the original wp-content/uploads upload path.

props jeremyfelt.
fixes #25030.


git-svn-id: https://develop.svn.wordpress.org/trunk@25148 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Nacin 2013-08-28 03:35:44 +00:00
parent dc0d29b59b
commit 022e5c2227
1 changed files with 1 additions and 1 deletions

View File

@ -1554,7 +1554,7 @@ function wp_upload_dir( $time = null ) {
}
// If multisite (and if not the main site in a post-MU network)
if ( is_multisite() && ! ( is_main_site() && defined( 'MULTISITE' ) ) ) {
if ( is_multisite() && ! ( is_main_network() && is_main_site() && defined( 'MULTISITE' ) ) ) {
if ( ! get_site_option( 'ms_files_rewriting' ) ) {
// If ms-files rewriting is disabled (networks created post-3.5), it is fairly straightforward: