Changeset 4495 for trunk/wp-admin/theme-editor.php
- Timestamp:
- 11/19/2006 07:56:05 AM (19 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/theme-editor.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/theme-editor.php
r4480 r4495 81 81 <?php endif; ?> 82 82 <div class="wrap"> 83 <form name="theme" action="theme-editor.php" method="post"> 83 <form name="theme" action="theme-editor.php" method="post"> 84 84 <?php _e('Select theme to edit:') ?> 85 85 <select name="theme" id="theme"> … … 107 107 ?> 108 108 <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> 110 110 111 111 <?php 112 112 if ($allowed_files) : 113 113 ?> 114 <ul>114 <ul> 115 115 <?php foreach($allowed_files as $allowed_file) : ?> 116 116 <li><a href="theme-editor.php?file=<?php echo "$allowed_file"; ?>&theme=<?php echo urlencode($theme) ?>"><?php echo get_file_description($allowed_file); ?></a></li> 117 117 <?php endforeach; ?> 118 </ul>118 </ul> 119 119 <?php endif; ?> 120 </div> 120 </div> 121 121 <?php 122 122 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 ?>" /> 130 130 </div> 131 131 <?php if ( is_writeable($real_file) ) : ?> 132 <p class="submit">132 <p class="submit"> 133 133 <?php 134 134 echo "<input type='submit' name='submit' value=' " . __('Update File »') . "' tabindex='2' />"; … … 138 138 <p><em><?php _e('If this file were writable you could edit it.'); ?></em></p> 139 139 <?php endif; ?> 140 </form> 141 <?php140 </form> 141 <?php 142 142 } else { 143 143 echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') . '</p></div>'; … … 145 145 ?> 146 146 <div class="clear"> </div> 147 </div> 147 </div> 148 148 <?php 149 149 break; 150 150 } 151 151 152 include("admin-footer.php") ?> 152 include("admin-footer.php") ?>
Note: See TracChangeset
for help on using the changeset viewer.