Skip to content

Commit

Permalink
delete GHU transients when updating GHU
Browse files Browse the repository at this point in the history
  • Loading branch information
afragen committed Oct 17, 2016
1 parent 3183dd3 commit ce8d343
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/GitHub_Updater/Base.php
Original file line number Diff line number Diff line change
Expand Up @@ -591,6 +591,11 @@ public function upgrader_source_selection( $source, $remote_source, $upgrader, $

$wp_filesystem->move( $source, $new_source );

if ( 'github-updater' === $slug ) {
$this->delete_all_transients('plugins');
$this->delete_all_transients('themes');
}

return trailingslashit( $new_source );
}

Expand Down

0 comments on commit ce8d343

Please sign in to comment.