Skip to content

Commit

Permalink
delete transients in upgrader_process_complete
Browse files Browse the repository at this point in the history
for GHU updates
  • Loading branch information
afragen committed Oct 17, 2016
1 parent 3829fcc commit f073f76
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/GitHub_Updater/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -596,12 +596,16 @@ public function upgrader_source_selection( $source, $remote_source, $upgrader, $
$wp_filesystem->move( $source, $new_source );

if ( 'github-updater' === $slug ) {
$this->delete_all_transients();
add_action( 'upgrader_process_complete', array( &$this, 'upgrader_process_complete'), 15 );
}

return trailingslashit( $new_source );
}

public function upgrader_process_complete() {
$this->delete_all_transients();
}

/**
* Delete $source when updating from GitLab Release Asset.
*
Expand Down

0 comments on commit f073f76

Please sign in to comment.