diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 74fb83b17..ee0524c7c 100644 --- a/wp-admin/theme-editor.php +++ b/wp-admin/theme-editor.php @@ -41,6 +41,8 @@ if (empty($file)) { $file = validate_file_to_edit($file, $allowed_files); $real_file = get_real_file_to_edit($file); +$file_show = basename( $file ); + switch($action) { case 'update': @@ -104,10 +106,10 @@ default:
%s
'), $file) . '';
+ if ( is_writeable($real_file) ) {
+ echo '%s
'), $file_show) . '%s
'), $file) . '%s
'), $file_show) . '