From be0b363c5cedf7c0f3420d344ea88f504979f1b4 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 10 Sep 2010 20:29:19 +0000 Subject: [PATCH] Fix UPLOADS constant. see #14840. git-svn-id: https://develop.svn.wordpress.org/trunk@15607 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index ac11769518..88f54b7f88 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -2124,7 +2124,7 @@ function wp_upload_dir( $time = null ) { $siteurl = get_option( 'siteurl' ); $upload_path = get_option( 'upload_path' ); $upload_path = trim($upload_path); - $main_override = defined( 'MULTISITE' ) && is_main_site(); + $main_override = is_multisite() && defined( 'MULTISITE' ) && is_main_site(); if ( empty($upload_path) ) { $dir = WP_CONTENT_DIR . '/uploads'; } else {