Administration: Merge similar "file does not exist" messages in plugin and theme editors.
Props ramiy. Fixes #47249. Built from https://develop.svn.wordpress.org/trunk@45431 git-svn-id: http://core.svn.wordpress.org/trunk@45242 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
@@ -460,7 +460,7 @@ function wp_edit_theme_plugin_file( $args ) {
|
||||
|
||||
// Ensure file is real.
|
||||
if ( ! is_file( $real_file ) ) {
|
||||
return new WP_Error( 'file_does_not_exist', __( 'No such file exists! Double check the name and try again.' ) );
|
||||
return new WP_Error( 'file_does_not_exist', __( 'File does not exist! Please double check the name and try again.' ) );
|
||||
}
|
||||
|
||||
// Ensure file extension is allowed.
|
||||
|
||||
Reference in New Issue
Block a user