Make WordPress Core


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.8/wp-admin/theme-editor.php

    r11530 r11673  
    2323} else {
    2424    $theme = stripslashes($theme);
    25  }
    26 
     25}
    2726
    2827if ( ! isset($themes[$theme]) )
     
    6665
    6766    $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);
    7069    header("Location: $location");
    7170    exit();
     
    7776    if ( !current_user_can('edit_themes') )
    7877        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' );
    8278
    8379    require_once('admin-header.php');
     
    118114<?php screen_icon(); ?>
    119115<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">
    122123        <strong><label for="theme"><?php _e('Select theme to edit:'); ?> </label></strong>
    123124        <select name="theme" id="theme">
     
    135136    </form>
    136137</div>
    137 <div class="tablenav">
    138 <div class="alignleft">
    139 <big><?php echo sprintf($desc_header, $file_show); ?></big>
    140 </div>
    141138<br class="clear" />
    142139</div>
    143 <br class="clear" />
    144     <div id="templateside">
    145     <h3 id="bordertitle"><?php _e("Theme Files"); ?></h3>
     140
     141<div id="templateside">
     142    <h3><?php _e("Theme Files"); ?></h3>
    146143
    147144<?php
     
    194191<?php endif; ?>
    195192</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">
    200196    <?php wp_nonce_field('edit-theme_' . $file . $theme) ?>
    201197         <div><textarea cols="70" rows="25" name="newcontent" id="newcontent" tabindex="1" class="codepress <?php echo $codepress_lang ?>"><?php echo $content ?></textarea>
     
    223219<?php endif; ?>
    224220        </div>
    225     </form>
    226     <?php
     221</form>
     222<?php
    227223    } else {
    228224        echo '<div class="error"><p>' . __('Oops, no such file exists! Double check the name and try again, merci.') . '</p></div>';
    229225    }
    230     ?>
    231 <div class="clear"> &nbsp; </div>
     226?>
     227<br class="clear" />
    232228</div>
    233229<?php
     
    235231}
    236232
    237 include("admin-footer.php") ?>
     233include("admin-footer.php");
Note: See TracChangeset for help on using the changeset viewer.