WordPress.org

Make WordPress Core

Ticket #14121: fix_upload_is_user_over_quota_when_space_check_is_disabled.patch

File fix_upload_is_user_over_quota_when_space_check_is_disabled.patch, 445 bytes (added by SergeyBiryukov, 5 years ago)
  • ms-functions.php

     
    11051105 
    11061106function upload_is_user_over_quota( $echo = true ) { 
    11071107        if ( get_site_option( 'upload_space_check_disabled' ) ) 
    1108                 return true; 
     1108                return false; 
    11091109 
    11101110        $spaceAllowed = get_space_allowed(); 
    11111111        if ( empty( $spaceAllowed ) || !is_numeric( $spaceAllowed ) )