Make WordPress Core

Changeset 3084


Ignore:
Timestamp:
11/14/2005 10:26:39 AM (20 years ago)
Author:
matt
Message:

No need to display the whole big path, fixes #1617

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/theme-editor.php

    r3082 r3084  
    4141$file = validate_file_to_edit($file, $allowed_files);
    4242$real_file = get_real_file_to_edit($file);
     43
     44$file_show = basename( $file );
    4345
    4446switch($action) {
     
    105107 <div class="wrap">
    106108  <?php
    107     if (is_writeable($real_file)) {
    108         echo '<h2>' . sprintf(__('Editing <code>%s</code>'), $file) . '</h2>';
     109    if ( is_writeable($real_file) ) {
     110        echo '<h2>' . sprintf(__('Editing <code>%s</code>'), $file_show) . '</h2>';
    109111    } else {
    110         echo '<h2>' . sprintf(__('Browsing <code>%s</code>'), $file) . '</h2>';
     112        echo '<h2>' . sprintf(__('Browsing <code>%s</code>'), $file_show) . '</h2>';
    111113    }
    112114    ?>
Note: See TracChangeset for help on using the changeset viewer.