WordPress.org

Make WordPress Core

Ticket #19538: 19538.diff

File 19538.diff, 518 bytes (added by wpmuguru, 3 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        if ( empty( $space_allowed ) ) 
    389389                $space_allowed = get_site_option( 'blog_upload_space' ); 
    390390        if ( empty( $space_allowed ) || !is_numeric( $space_allowed ) ) 
    391391                $space_allowed = 50;