Skip to content

Commit

Permalink
Merge pull request #532 from PatelUtkarsh/531-remove-filter-fix
Browse files Browse the repository at this point in the history
Fix #531 remove_filter extra params
  • Loading branch information
jrfnl committed Mar 27, 2016
2 parents dee0715 + 22564f5 commit 171df55
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions class-tgm-plugin-activation.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
Expand Down Expand Up @@ -2914,7 +2914,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 '</div></div>';

Expand Down

0 comments on commit 171df55

Please sign in to comment.