WordPress.org

Make WordPress Core

Changeset 37331


Ignore:
Timestamp:
04/30/2016 03:03:14 PM (4 years ago)
Author:
ocean90
Message:

Plugins: In uninstall_plugin() pass the plugin file to wp_register_plugin_realpath().

wp_register_plugin_realpath() calls dirname( $file ); to remove the basename. The basename must be included in the argument or the symlinked directory won't be registered.

Props andy.
Fixes #36709.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/plugin.php

    r36824 r37331  
    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
Note: See TracChangeset for help on using the changeset viewer.