No need to display the whole big path, fixes #1617
git-svn-id: http://svn.automattic.com/wordpress/trunk@3084 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
50cc9f757b
commit
5c1a6a23ad
|
@ -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':
|
||||||
|
@ -104,10 +106,10 @@ 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