Make WordPress Core

Ticket #26735: 26735.2.diff

File 26735.2.diff, 495 bytes (added by jdgrimes, 11 years ago)

Define WP_UNINSTALL_PLUGIN as true

  • src/wp-admin/includes/plugin.php

     
    920920                }
    921921                unset($uninstallable_plugins);
    922922
    923                 define('WP_UNINSTALL_PLUGIN', $file);
     923                if ( ! defined( 'WP_UNINSTALL_PLUGIN' ) ) {
     924                        define( 'WP_UNINSTALL_PLUGIN', true );
     925                }
    924926                include WP_PLUGIN_DIR . '/' . dirname($file) . '/uninstall.php';
    925927
    926928                return true;