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/plugin-editor.php

    r4480 r4495  
    6262 <div id="message" class="updated fade"><p><?php _e('File edited successfully.') ?></p></div>
    6363<?php endif; ?>
    64  <div class="wrap"> 
    65   <?php
     64 <div class="wrap">
     65    <?php
    6666    if (is_writeable($real_file)) {
    6767        echo '<h2>' . sprintf(__('Editing <strong>%s</strong>'), $file) . '</h2>';
     
    7676if ($plugin_files) :
    7777?>
    78   <ul>
    79 <?php foreach($plugin_files as $plugin_file) : ?>
     78    <ul>
     79    <?php foreach($plugin_files as $plugin_file) : ?>
    8080         <li><a href="plugin-editor.php?file=<?php echo "$plugin_file"; ?>"><?php echo $plugins[$plugin_file]['Name']; ?></a></li>
    81 <?php endforeach; ?>
    82   </ul>
     81    <?php endforeach; ?>
     82    </ul>
    8383<?php endif; ?>
    8484</div>
    85     <?php   if (!$error) { ?>
    86   <form name="template" id="template" action="plugin-editor.php" method="post">
    87   <?php wp_nonce_field('edit-plugin_' . $file) ?>
    88          <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1"><?php echo $content ?></textarea>
    89      <input type="hidden" name="action" value="update" />
    90      <input type="hidden" name="file" value="<?php echo $file ?>" />
     85<?php   if (!$error) { ?>
     86    <form name="template" id="template" action="plugin-editor.php" method="post">
     87    <?php wp_nonce_field('edit-plugin_' . $file) ?>
     88        <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1"><?php echo $content ?></textarea>
     89        <input type="hidden" name="action" value="update" />
     90        <input type="hidden" name="file" value="<?php echo $file ?>" />
    9191        </div>
    9292<?php if ( is_writeable($real_file) ) : ?>
    93      <p class="submit">
     93    <p class="submit">
     94    <?php
     95        echo "<input type='submit' name='submit' value='    " . __('Update File &raquo;') . "' tabindex='2' />";
     96    ?>
     97    </p>
     98<?php else : ?>
     99    <p><em><?php _e('If this file were writable you could edit it.'); ?></em></p>
     100<?php endif; ?>
     101 </form>
    94102<?php
    95     echo "<input type='submit' name='submit' value='    " . __('Update File &raquo;') . "' tabindex='2' />";
    96 ?>
    97 </p>
    98 <?php else : ?>
    99 <p><em><?php _e('If this file were writable you could edit it.'); ?></em></p>
    100 <?php endif; ?>
    101    </form>
    102   <?php
    103103    } else {
    104104        echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') . '</p></div>';
    105105    }
    106     ?>
     106?>
    107107<div class="clear"> &nbsp; </div>
    108 </div> 
     108</div>
    109109<?php
    110110break;
    111111}
    112112
    113 include("admin-footer.php") ?> 
     113include("admin-footer.php") ?>
Note: See TracChangeset for help on using the changeset viewer.