diff --git a/class-tgm-plugin-activation.php b/class-tgm-plugin-activation.php index 5211858b..6b375334 100755 --- a/class-tgm-plugin-activation.php +++ b/class-tgm-plugin-activation.php @@ -885,7 +885,7 @@ protected function do_plugin_install() { $upgrader->install( $source ); } - remove_filter( 'upgrader_source_selection', array( $this, 'maybe_adjust_source_dir' ), 1, 3 ); + remove_filter( 'upgrader_source_selection', array( $this, 'maybe_adjust_source_dir' ), 1 ); // Make sure we have the correct file path now the plugin is installed/updated. $this->populate_file_path( $slug ); @@ -2913,7 +2913,7 @@ public function process_bulk_actions() { $installer->bulk_install( $sources ); } - remove_filter( 'upgrader_source_selection', array( $this->tgmpa, 'maybe_adjust_source_dir' ), 1, 3 ); + remove_filter( 'upgrader_source_selection', array( $this->tgmpa, 'maybe_adjust_source_dir' ), 1 ); echo '';