Make WordPress Core


Ignore:
Timestamp:
03/01/2013 04:28:40 PM (12 years ago)
Author:
ryan
Message:

Revert 23416, 23419, 23445 except for wp_reset_vars() changes. We are going a different direction with the slashing cleanup, so resetting to a clean slate. see #21767

File:
1 edited

Legend:

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

    r23419 r23554  
    6969    $file = $allowed_files['style.css'];
    7070} else {
    71     $relative_file = $file;
     71    $relative_file = stripslashes( $file );
    7272    $file = $theme->get_stylesheet_directory() . '/' . $relative_file;
    7373}
     
    7979case 'update':
    8080    check_admin_referer( 'edit-theme_' . $file . $stylesheet );
    81     $newcontent = wp_unslash( $_POST['newcontent'] );
     81    $newcontent = stripslashes( $_POST['newcontent'] );
    8282    $location = 'theme-editor.php?file=' . urlencode( $relative_file ) . '&theme=' . urlencode( $stylesheet ) . '&scrollto=' . $scrollto;
    8383    if ( is_writeable( $file ) ) {
Note: See TracChangeset for help on using the changeset viewer.