Make WordPress Core


Ignore:
Timestamp:
11/19/2006 07:56:05 AM (19 years ago)
Author:
ryan
Message:

Remove trailing spaces and convert spaces to tabs. Props Nazgul. fixes #986

File:
1 edited

Legend:

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

    r4480 r4495  
    8181<?php endif; ?>
    8282 <div class="wrap">
    83   <form name="theme" action="theme-editor.php" method="post">
     83    <form name="theme" action="theme-editor.php" method="post">
    8484        <?php _e('Select theme to edit:') ?>
    8585        <select name="theme" id="theme">
     
    107107    ?>
    108108    <div id="templateside">
    109   <h3><?php printf(__("<strong>'%s'</strong> theme files"), $theme) ?></h3>
     109    <h3><?php printf(__("<strong>'%s'</strong> theme files"), $theme) ?></h3>
    110110
    111111<?php
    112112if ($allowed_files) :
    113113?>
    114   <ul>
     114    <ul>
    115115<?php foreach($allowed_files as $allowed_file) : ?>
    116116         <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>
    117117<?php endforeach; ?>
    118   </ul>
     118    </ul>
    119119<?php endif; ?>
    120 </div> 
     120</div>
    121121    <?php
    122122    if (!$error) {
    123     ?> 
    124   <form name="template" id="template" action="theme-editor.php" method="post">
    125   <?php wp_nonce_field('edit-theme_' . $file . $theme) ?>
    126          <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1"><?php echo $content ?></textarea> 
    127      <input type="hidden" name="action" value="update" />
    128      <input type="hidden" name="file" value="<?php echo $file ?>" />
    129     <input type="hidden" name="theme" value="<?php echo $theme ?>" />
     123    ?>
     124    <form name="template" id="template" action="theme-editor.php" method="post">
     125    <?php wp_nonce_field('edit-theme_' . $file . $theme) ?>
     126         <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1"><?php echo $content ?></textarea>
     127         <input type="hidden" name="action" value="update" />
     128         <input type="hidden" name="file" value="<?php echo $file ?>" />
     129        <input type="hidden" name="theme" value="<?php echo $theme ?>" />
    130130         </div>
    131131<?php if ( is_writeable($real_file) ) : ?>
    132      <p class="submit">
     132    <p class="submit">
    133133<?php
    134134    echo "<input type='submit' name='submit' value='    " . __('Update File &raquo;') . "' tabindex='2' />";
     
    138138<p><em><?php _e('If this file were writable you could edit it.'); ?></em></p>
    139139<?php endif; ?>
    140    </form>
    141   <?php
     140    </form>
     141    <?php
    142142    } else {
    143143        echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') . '</p></div>';
     
    145145    ?>
    146146<div class="clear"> &nbsp; </div>
    147 </div> 
     147</div>
    148148<?php
    149149break;
    150150}
    151151
    152 include("admin-footer.php") ?> 
     152include("admin-footer.php") ?>
Note: See TracChangeset for help on using the changeset viewer.