From 697a6d55601424a32109d92c9416da63158a001a Mon Sep 17 00:00:00 2001 From: Dominik Schilling Date: Sat, 30 Apr 2016 15:04:27 +0000 Subject: [PATCH] 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. Built from https://develop.svn.wordpress.org/trunk@37331 git-svn-id: http://core.svn.wordpress.org/trunk@37297 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/includes/plugin.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/wp-admin/includes/plugin.php b/wp-admin/includes/plugin.php index 25f6828787..5178c9b60c 100644 --- a/wp-admin/includes/plugin.php +++ b/wp-admin/includes/plugin.php @@ -1003,7 +1003,7 @@ function uninstall_plugin($plugin) { unset($uninstallable_plugins); define('WP_UNINSTALL_PLUGIN', $file); - wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . dirname( $file ) ); + wp_register_plugin_realpath( WP_PLUGIN_DIR . '/' . $file ); include( WP_PLUGIN_DIR . '/' . dirname($file) . '/uninstall.php' ); return true; diff --git a/wp-includes/version.php b/wp-includes/version.php index b6b00964cb..b5a1a32936 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.6-alpha-37330'; +$wp_version = '4.6-alpha-37331'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.