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