No need to display the whole big path, fixes #1617
git-svn-id: https://develop.svn.wordpress.org/trunk@3084 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
bfcff70845
commit
f26a84a752
|
@ -41,6 +41,8 @@ if (empty($file)) {
|
||||||
$file = validate_file_to_edit($file, $allowed_files);
|
$file = validate_file_to_edit($file, $allowed_files);
|
||||||
$real_file = get_real_file_to_edit($file);
|
$real_file = get_real_file_to_edit($file);
|
||||||
|
|
||||||
|
$file_show = basename( $file );
|
||||||
|
|
||||||
switch($action) {
|
switch($action) {
|
||||||
|
|
||||||
case 'update':
|
case 'update':
|
||||||
|
@ -105,9 +107,9 @@ default:
|
||||||
<div class="wrap">
|
<div class="wrap">
|
||||||
<?php
|
<?php
|
||||||
if ( is_writeable($real_file) ) {
|
if ( is_writeable($real_file) ) {
|
||||||
echo '<h2>' . sprintf(__('Editing <code>%s</code>'), $file) . '</h2>';
|
echo '<h2>' . sprintf(__('Editing <code>%s</code>'), $file_show) . '</h2>';
|
||||||
} else {
|
} else {
|
||||||
echo '<h2>' . sprintf(__('Browsing <code>%s</code>'), $file) . '</h2>';
|
echo '<h2>' . sprintf(__('Browsing <code>%s</code>'), $file_show) . '</h2>';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div id="templateside">
|
<div id="templateside">
|
||||||
|
|
Loading…
Reference in New Issue