From 22564f5c837be7bfb3f6f189950282fbb018ec94 Mon Sep 17 00:00:00 2001 From: Utkarsh Patel Date: Fri, 29 Jan 2016 00:40:33 +0530 Subject: [PATCH] Fix remove_filter extra params --- class-tgm-plugin-activation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 '';