Changeset 4495 for trunk/wp-admin/plugin-editor.php
- Timestamp:
- 11/19/2006 07:56:05 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/plugin-editor.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/plugin-editor.php
r4480 r4495 62 62 <div id="message" class="updated fade"><p><?php _e('File edited successfully.') ?></p></div> 63 63 <?php endif; ?> 64 <div class="wrap"> 65 <?php64 <div class="wrap"> 65 <?php 66 66 if (is_writeable($real_file)) { 67 67 echo '<h2>' . sprintf(__('Editing <strong>%s</strong>'), $file) . '</h2>'; … … 76 76 if ($plugin_files) : 77 77 ?> 78 <ul>79 <?php foreach($plugin_files as $plugin_file) : ?>78 <ul> 79 <?php foreach($plugin_files as $plugin_file) : ?> 80 80 <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> 83 83 <?php endif; ?> 84 84 </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 ?>" /> 91 91 </div> 92 92 <?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 »') . "' 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> 94 102 <?php 95 echo "<input type='submit' name='submit' value=' " . __('Update File »') . "' 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 <?php103 103 } else { 104 104 echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') . '</p></div>'; 105 105 } 106 ?>106 ?> 107 107 <div class="clear"> </div> 108 </div> 108 </div> 109 109 <?php 110 110 break; 111 111 } 112 112 113 include("admin-footer.php") ?> 113 include("admin-footer.php") ?>
Note: See TracChangeset
for help on using the changeset viewer.