Make WordPress Core

Ticket #26735: 26735.diff

File 26735.diff, 425 bytes (added by spmlucas, 11 years ago)
  • 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', $file);
     925
    924926                include WP_PLUGIN_DIR . '/' . dirname($file) . '/uninstall.php';
    925927
    926928                return true;