From ad6e83136d1a4bec1de3bc9c36e0e5d0a427407e Mon Sep 17 00:00:00 2001 From: markjaquith Date: Wed, 24 Nov 2010 20:45:21 +0000 Subject: [PATCH] Improve the wording of the file upload security message. props janeforshort. fixes #13550 git-svn-id: http://svn.automattic.com/wordpress/trunk@16577 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/file.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/file.php b/wp-admin/includes/file.php index 0a0847902c..75dc4a9bd1 100644 --- a/wp-admin/includes/file.php +++ b/wp-admin/includes/file.php @@ -338,7 +338,7 @@ function wp_handle_upload( &$file, $overrides = false, $time = null ) { $file['name'] = $proper_filename; if ( ( !$type || !$ext ) && !current_user_can( 'unfiltered_upload' ) ) - return call_user_func($upload_error_handler, $file, __( 'File type does not meet security guidelines. Try another.' )); + return call_user_func($upload_error_handler, $file, __( 'Sorry, this file type is not permitted for security reasons.' )); if ( !$ext ) $ext = ltrim(strrchr($file['name'], '.'), '.'); @@ -458,7 +458,7 @@ function wp_handle_sideload( &$file, $overrides = false ) { $file['name'] = $proper_filename; if ( ( !$type || !$ext ) && !current_user_can( 'unfiltered_upload' ) ) - return $upload_error_handler( $file, __( 'File type does not meet security guidelines. Try another.' )); + return $upload_error_handler( $file, __( 'Sorry, this file type is not permitted for security reasons.' )); if ( !$ext ) $ext = ltrim(strrchr($file['name'], '.'), '.');