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/plugin-editor.php

    r23419 r23554  
    2929
    3030if ( isset($_REQUEST['file']) )
    31     $plugin = wp_unslash($_REQUEST['file']);
     31    $plugin = stripslashes($_REQUEST['file']);
    3232
    3333if ( empty($plugin) ) {
     
    4040if ( empty($file) )
    4141    $file = $plugin_files[0];
     42else
     43    $file = stripslashes($file);
    4244
    4345$file = validate_file_to_edit($file, $plugin_files);
     
    5153    check_admin_referer('edit-plugin_' . $file);
    5254
    53     $newcontent = wp_unslash( $_POST['newcontent'] );
     55    $newcontent = stripslashes($_POST['newcontent']);
    5456    if ( is_writeable($real_file) ) {
    5557        $f = fopen($real_file, 'w+');
Note: See TracChangeset for help on using the changeset viewer.