mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 14:20:15 +00:00
fs direct fixes from DD32. see #5586
git-svn-id: https://develop.svn.wordpress.org/trunk@6920 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -178,7 +178,7 @@ function wp_update_plugin($plugin, $feedback = '') {
|
||||
$plugin_dir = dirname(ABSPATH . PLUGINDIR . "/$plugin");
|
||||
|
||||
// If plugin is in its own directory, recursively delete the directory.
|
||||
if ( '.' != $plugin_dir )
|
||||
if ( '.' != $plugin_dir && ABSPATH . PLUGINDIR != $plugin_dir )
|
||||
$wp_filesystem->delete($plugin_dir, true);
|
||||
|
||||
apply_filters('update_feedback', __("Installing the latest version"));
|
||||
|
||||
Reference in New Issue
Block a user