WordPress.org

Make WordPress Core

Changeset 23419


Ignore:
Timestamp:
02/15/13 02:01:36 (14 months ago)
Author:
nacin
Message:

Do not unslash variables reset by wp_reset_vars(). Remove variables that have never been used in plugin-editor.php. see #21767.

Location:
trunk/wp-admin
Files:
2 edited

Legend:

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

    r23416 r23419  
    2121$parent_file = 'plugins.php'; 
    2222 
    23 wp_reset_vars(array('action', 'redirect', 'profile', 'error', 'warning', 'a', 'file', 'plugin')); 
     23wp_reset_vars( array( 'action', 'error', 'file', 'plugin' ) ); 
    2424 
    2525$plugins = get_plugins(); 
     
    4040if ( empty($file) ) 
    4141    $file = $plugin_files[0]; 
    42 else 
    43     $file = wp_unslash($file); 
    4442 
    4543$file = validate_file_to_edit($file, $plugin_files); 
  • trunk/wp-admin/theme-editor.php

    r23416 r23419  
    6969    $file = $allowed_files['style.css']; 
    7070} else { 
    71     $relative_file = wp_unslash( $file ); 
     71    $relative_file = $file; 
    7272    $file = $theme->get_stylesheet_directory() . '/' . $relative_file; 
    7373} 
Note: See TracChangeset for help on using the changeset viewer.