From 4cfcdabdd805c31227d49ebfa7e47509af501ea9 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 21 Feb 2014 14:45:06 +0000 Subject: [PATCH] Simplify error in validate_file_to_edit(). props MattyRob for initial patch. fixes #25924. git-svn-id: https://develop.svn.wordpress.org/trunk@27219 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-admin/includes/file.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-admin/includes/file.php b/src/wp-admin/includes/file.php index 25acd6f9ea..5cb0f49211 100644 --- a/src/wp-admin/includes/file.php +++ b/src/wp-admin/includes/file.php @@ -177,13 +177,13 @@ function validate_file_to_edit( $file, $allowed_files = '' ) { switch ( $code ) { case 1 : - wp_die( __('Sorry, can’t edit files with “..” in the name. If you are trying to edit a file in your WordPress home directory, you can just type the name of the file in.' )); + wp_die( __( 'Sorry, that file cannot be edited.' ) ); //case 2 : // wp_die( __('Sorry, can’t call files with their real path.' )); case 3 : - wp_die( __('Sorry, that file cannot be edited.' )); + wp_die( __( 'Sorry, that file cannot be edited.' ) ); } }