From 58ab59ad76082688d43b91f7f7194ea6606dfb33 Mon Sep 17 00:00:00 2001 From: Ryan Boren Date: Tue, 12 May 2009 17:02:34 +0000 Subject: [PATCH] Update upload error strings. Props Askapache. fixes #9625 git-svn-id: https://develop.svn.wordpress.org/trunk@11304 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/file.php | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index 33f952ffb7..f7b0cb4044 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;