diff options
Diffstat (limited to 'wp-inst/wp-admin/theme-editor.php')
| -rw-r--r-- | wp-inst/wp-admin/theme-editor.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/wp-inst/wp-admin/theme-editor.php b/wp-inst/wp-admin/theme-editor.php index 8a0d4e7..e408b72 100644 --- a/wp-inst/wp-admin/theme-editor.php +++ b/wp-inst/wp-admin/theme-editor.php @@ -42,6 +42,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': @@ -105,10 +107,10 @@ default: <div class="wrap"> <?php - if (is_writeable($real_file)) { - echo '<h2>' . sprintf(__('Editing <code>%s</code>'), $file) . '</h2>'; + if ( is_writeable($real_file) ) { + echo '<h2>' . sprintf(__('Editing <code>%s</code>'), $file_show) . '</h2>'; } else { - echo '<h2>' . sprintf(__('Browsing <code>%s</code>'), $file) . '</h2>'; + echo '<h2>' . sprintf(__('Browsing <code>%s</code>'), $file_show) . '</h2>'; } ?> <div id="templateside"> @@ -147,7 +149,8 @@ if ($allowed_files) : } else { echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') . '</p></div>'; } - ?> + ?> +<div class="clear"> </div> </div> <?php break; |
