From 7931ec33f1a545d4139756a2b4a46f503a235375 Mon Sep 17 00:00:00 2001 From: nacin Date: Fri, 30 Dec 2011 23:10:54 +0000 Subject: [PATCH] Better checking for values for multisite upload limits. see #19538 for trunk. git-svn-id: http://svn.automattic.com/wordpress/trunk@19639 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/ms.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/ms.php b/wp-admin/includes/ms.php index f72a51d69b..d00c847d68 100644 --- a/wp-admin/includes/ms.php +++ b/wp-admin/includes/ms.php @@ -385,9 +385,11 @@ function get_upload_space_available() { */ function get_space_allowed() { $space_allowed = get_option( 'blog_upload_space' ); - if ( $space_allowed === false ) + + if ( ! is_numeric( $space_allowed ) ) $space_allowed = get_site_option( 'blog_upload_space' ); - if ( empty( $space_allowed ) || !is_numeric( $space_allowed ) ) + + if ( ! is_numeric( $space_allowed ) ) $space_allowed = 50; return $space_allowed;