diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index 18c1fc9a2f..964fc4ad0b 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -269,8 +269,6 @@ function _wp_handle_upload( &$file, $overrides, $time, $action ) { $test_type = isset( $overrides['test_type'] ) ? $overrides['test_type'] : true; $mimes = isset( $overrides['mimes'] ) ? $overrides['mimes'] : false; - $test_upload = isset( $overrides['test_upload'] ) ? $overrides['test_upload'] : true; - // A correct form post will pass this test. if ( $test_form && ( ! isset( $_POST['action'] ) || ( $_POST['action'] != $action ) ) ) { return call_user_func( $upload_error_handler, $file, __( 'Invalid form submission.' ) ); @@ -293,7 +291,7 @@ function _wp_handle_upload( &$file, $overrides, $time, $action ) { // A properly uploaded file will pass this test. There should be no reason to override this one. $test_uploaded_file = 'wp_handle_upload' === $action ? @ is_uploaded_file( $file['tmp_name'] ) : @ is_file( $file['tmp_name'] ); - if ( $test_upload && ! $test_uploaded_file ) { + if ( ! $test_uploaded_file ) { return call_user_func( $upload_error_handler, $file, __( 'Specified file failed upload test.' ) ); } diff --git a/wp-includes/version.php b/wp-includes/version.php index 4173838582..55c5f0089d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.1-alpha-30075'; +$wp_version = '4.1-alpha-30076'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.