WordPress.org

Make WordPress Core

Ticket #19538: 19538.2.diff

File 19538.2.diff, 666 bytes (added by wpmuguru, 6 years ago)
  • wp-admin/includes/ms.php

     
    385385 */
    386386function get_space_allowed() {
    387387        $space_allowed = get_option( 'blog_upload_space' );
    388         if ( $space_allowed === false )
     388
     389        if ( $space_allowed === false || $space_allowed === '' )
    389390                $space_allowed = get_site_option( 'blog_upload_space' );
    390         if ( empty( $space_allowed ) || !is_numeric( $space_allowed ) )
     391        if ( $space_allowed === false || $space_allowed === '' || !is_numeric( $space_allowed ) )
    391392                $space_allowed = 50;
    392393
    393394        return $space_allowed;