diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index 33f952ffb..f7b0cb404 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -239,7 +239,8 @@ function wp_handle_upload( &$file, $overrides = false, $time = null ) { __( "No file was uploaded." ), '', __( "Missing a temporary folder." ), - __( "Failed to write file to disk." )); + __( "Failed to write file to disk." ), + __( "File upload stopped by extension." )); // All tests are on by default. Most can be turned off by $override[{test_name}] = false; $test_form = true; @@ -340,12 +341,14 @@ function wp_handle_sideload( &$file, $overrides = false ) { // Courtesy of php.net, the strings that describe the error indicated in $_FILES[{form field}]['error']. $upload_error_strings = array( false, - __( "The file exceeds the upload_max_filesize directive in php.ini." ), - __( "The file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form." ), - __( "The file was only partially uploaded." ), - __( "No file was sent." ), + __( "The uploaded file exceeds the upload_max_filesize directive in php.ini." ), + __( "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form." ), + __( "The uploaded file was only partially uploaded." ), + __( "No file was uploaded." ), + '', __( "Missing a temporary folder." ), - __( "Failed to write file to disk." )); + __( "Failed to write file to disk." ), + __( "File upload stopped by extension." )); // All tests are on by default. Most can be turned off by $override[{test_name}] = false; $test_form = true;