WordPress.org

Make WordPress Core

Ticket #19731: plugin-editor-file-listing-bugfix.patch

File plugin-editor-file-listing-bugfix.patch, 471 bytes (added by midhund, 2 years ago)

Patch File

  • wp-admin/plugin-editor.php

     
    2828        wp_die( __('There are no plugins installed on this site.') ); 
    2929 
    3030if ( isset($_REQUEST['file']) ) 
    31         $plugin = stripslashes($_REQUEST['file']); 
     31        $plugin = stripslashes($_REQUEST['plugin']); 
    3232 
    3333if ( empty($plugin) ) { 
    3434        $plugin = array_keys($plugins);