diff --git a/wp-admin/theme-editor.php b/wp-admin/theme-editor.php index 74fb83b172..ee0524c7cd 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:
' . sprintf(__('Editing %s'), $file) . ''; + if ( is_writeable($real_file) ) { + echo '

' . sprintf(__('Editing %s'), $file_show) . '

'; } else { - echo '

' . sprintf(__('Browsing %s'), $file) . '

'; + echo '

' . sprintf(__('Browsing %s'), $file_show) . '

'; } ?>