Ticket #16217: 16217.patch
File 16217.patch, 693 bytes (added by , 14 years ago) |
---|
-
wp-includes/ms-functions.php
1742 1742 * @return mixed If the upload is under the size limit, $upload is returned. Otherwise returns an error message. 1743 1743 */ 1744 1744 function 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' ) ) 1746 1746 return $upload; 1747 1747 1748 1748 if ( strlen( $upload['bits'] ) > ( 1024 * get_site_option( 'fileupload_maxk', 1500 ) ) )