Browse files

Fix folder name on update

  • Loading branch information...
1 parent 9fd1e99 commit 7743a1b6696a85718a6df79840f9c9942af62a86 @pdclark committed Jul 10, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 updater.php
View
3 updater.php
@@ -275,7 +275,8 @@ public function upgrader_post_install( $true, $hook_extra, $result ) {
global $wp_filesystem;
- $plugin = $this->plugins[ $hook_extra['plugin'] ];
+ $plugin = $this->plugins[ dirname($hook_extra['plugin']) ];
+
// Move & Activate
$proper_destination = WP_PLUGIN_DIR.'/'.$plugin->folder_name;

0 comments on commit 7743a1b

Please sign in to comment.