]> scripts.mit.edu Git - autoinstalls/wordpress.git/blobdiff - wp-admin/includes/ms.php
Wordpress 3.3.1
[autoinstalls/wordpress.git] / wp-admin / includes / ms.php
index 1b2c7e78e587a6671ff596d1065053bf52704510..2c275dfca301568267454359679a85b9b2275245 100644 (file)
@@ -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 ( empty( $space_allowed ) || ! is_numeric( $space_allowed ) )
                $space_allowed = 50;
 
        return $space_allowed;