Changes from branches/2.8/wp-admin/theme-editor.php at r11673 to trunk/wp-admin/theme-editor.php at r11530
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/theme-editor.php
r11673 r11530 23 23 } else { 24 24 $theme = stripslashes($theme); 25 } 25 } 26 26 27 27 28 if ( ! isset($themes[$theme]) ) … … 65 66 66 67 $location = wp_kses_no_null($location); 67 $strip = array('%0d', '%0a' , '%0D', '%0A');68 $location = _deep_replace($strip, $location);68 $strip = array('%0d', '%0a'); 69 $location = str_replace($strip, '', $location); 69 70 header("Location: $location"); 70 71 exit(); … … 76 77 if ( !current_user_can('edit_themes') ) 77 78 wp_die('<p>'.__('You do not have sufficient permissions to edit themes for this blog.').'</p>'); 79 80 if ( use_codepress() ) 81 wp_enqueue_script( 'codepress' ); 78 82 79 83 require_once('admin-header.php'); … … 114 118 <?php screen_icon(); ?> 115 119 <h2><?php echo esc_html( $title ); ?></h2> 116 117 <div class="fileedit-sub"> 118 <div class="alignleft"> 119 <big><?php echo sprintf($desc_header, $file_show); ?></big> 120 </div> 121 <div class="alignright"> 122 <form action="theme-editor.php" method="post"> 120 <div class="bordertitle"> 121 <form id="themeselector" action="theme-editor.php" method="post"> 123 122 <strong><label for="theme"><?php _e('Select theme to edit:'); ?> </label></strong> 124 123 <select name="theme" id="theme"> … … 136 135 </form> 137 136 </div> 137 <div class="tablenav"> 138 <div class="alignleft"> 139 <big><?php echo sprintf($desc_header, $file_show); ?></big> 140 </div> 138 141 <br class="clear" /> 139 142 </div> 140 141 <div id="templateside">142 <h3 ><?php _e("Theme Files"); ?></h3>143 <br class="clear" /> 144 <div id="templateside"> 145 <h3 id="bordertitle"><?php _e("Theme Files"); ?></h3> 143 146 144 147 <?php … … 191 194 <?php endif; ?> 192 195 </div> 193 194 <?php if (!$error) { ?> 195 <form name="template" id="template" action="theme-editor.php" method="post"> 196 <?php 197 if (!$error) { 198 ?> 199 <form name="template" id="template" action="theme-editor.php" method="post"> 196 200 <?php wp_nonce_field('edit-theme_' . $file . $theme) ?> 197 201 <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1" class="codepress <?php echo $codepress_lang ?>"><?php echo $content ?></textarea> … … 219 223 <?php endif; ?> 220 224 </div> 221 </form>222 <?php225 </form> 226 <?php 223 227 } else { 224 228 echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') . '</p></div>'; 225 229 } 226 ?>227 < br class="clear" />230 ?> 231 <div class="clear"> </div> 228 232 </div> 229 233 <?php … … 231 235 } 232 236 233 include("admin-footer.php") ;237 include("admin-footer.php") ?>
Note: See TracChangeset
for help on using the changeset viewer.