WordPress.org

Make WordPress Core

Ticket #17552: 17552.diff

File 17552.diff, 530 bytes (added by solarissmoke, 7 years ago)
  • wp-admin/plugin-editor.php

     
    2929if ( empty($plugins) )
    3030        wp_die( __('There are no plugins installed on this site.') );
    3131
    32 if ( isset($_REQUEST['file']) )
    33         $plugin = stripslashes($_REQUEST['file']);
     32if ( isset($_REQUEST['plugin']) )
     33        $plugin = stripslashes($_REQUEST['plugin']);
    3434
    3535if ( empty($plugin) ) {
    3636        $plugin = array_keys($plugins);