Friendlier file names in theme editor - http://mosquito.wordpress.org/view.php?id=598

git-svn-id: https://develop.svn.wordpress.org/trunk@2319 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg
2005-02-14 04:24:25 +00:00
parent eac6ef3906
commit b2041fc4d0
2 changed files with 10 additions and 6 deletions

View File

@@ -100,9 +100,9 @@ default:
<div class="wrap">
<?php
if (is_writeable($real_file)) {
echo '<h2>' . sprintf(__('Editing <strong>%s</strong>'), $file) . '</h2>';
echo '<h2>' . sprintf(__('Editing <code>%s</code>'), $file) . '</h2>';
} else {
echo '<h2>' . sprintf(__('Browsing <strong>%s</strong>'), $file) . '</h2>';
echo '<h2>' . sprintf(__('Browsing <code>%s</code>'), $file) . '</h2>';
}
?>
<div id="templateside">
@@ -113,7 +113,7 @@ if ($allowed_files) :
?>
<ul>
<?php foreach($allowed_files as $allowed_file) : ?>
<li><a href="theme-editor.php?file=<?php echo "$allowed_file"; ?>&amp;theme=<?php echo urlencode($theme) ?>"><?php echo get_file_description(basename($allowed_file)); ?></a></li>
<li><a href="theme-editor.php?file=<?php echo "$allowed_file"; ?>&amp;theme=<?php echo urlencode($theme) ?>"><?php echo get_file_description($allowed_file); ?></a></li>
<?php endforeach; ?>
</ul>
<?php endif; ?>