WordPress.org

Make WordPress Core

Ticket #16217: 16217.patch

File 16217.patch, 693 bytes (added by SergeyBiryukov, 5 years ago)
  • wp-includes/ms-functions.php

     
    17421742 * @return mixed If the upload is under the size limit, $upload is returned. Otherwise returns an error message. 
    17431743 */ 
    17441744function upload_is_file_too_big( $upload ) { 
    1745         if ( is_array( $upload ) == false || defined( 'WP_IMPORTING' ) ) 
     1745        if ( is_array( $upload ) == false || defined( 'WP_IMPORTING' ) || get_site_option( 'upload_space_check_disabled' ) ) 
    17461746                return $upload; 
    17471747 
    17481748        if ( strlen( $upload['bits'] )  > ( 1024 * get_site_option( 'fileupload_maxk', 1500 ) ) )