WordPress.org

Make WordPress Core

Ticket #36709: 36709.diff

File 36709.diff, 545 bytes (added by andy, 6 years ago)
  • trunk/wp-admin/includes/plugin.php

     
    10031003                unset($uninstallable_plugins);
    10041004
    10051005                define('WP_UNINSTALL_PLUGIN', $file);
    1006                 wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . dirname( $file ) );
     1006                wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file );
    10071007                include( WP_PLUGIN_DIR . '/' . dirname($file) . '/uninstall.php' );
    10081008
    10091009                return true;