Make WordPress Core

Ticket #37664: 37664.patch

File 37664.patch, 429 bytes (added by Clorith, 8 years ago)
  • src/wp-admin/plugin-editor.php

     
    3636        exit;
    3737}
    3838
    39 if ( $file ) {
    40         $plugin = $file;
    41 } elseif ( empty( $plugin ) ) {
     39if ( ! isset( $plugin ) || empty( $plugin ) ) {
    4240        $plugin = array_keys($plugins);
    4341        $plugin = $plugin[0];
    4442}