mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-03 15:08:10 +01:00
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);
|
||||
$real_file = get_real_file_to_edit($file);
|
||||
|
||||
$file_show = basename( $file );
|
||||
|
||||
switch($action) {
|
||||
|
||||
case 'update':
|
||||
@ -104,10 +106,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">
|
||||
|
Loading…
Reference in New Issue
Block a user