Skip to content

Commit

Permalink
Bring plugin cache flush method in line with the WP core one.
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfnl committed May 3, 2015
1 parent 8d06f76 commit a9a136d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions class-tgm-plugin-activation.php
Original file line number Diff line number Diff line change
Expand Up @@ -1118,10 +1118,13 @@ public function actions( $install_actions ) {
* from remaining in the plugin table.
*
* @since 2.4.0
*
* @param bool $clear_update_cache Optional. Whether to clear the Plugin updates cache.
* Parameter added in v2.5.0.
*/
public function flush_plugins_cache() {
public function flush_plugins_cache( $clear_update_cache = true ) {

wp_clean_plugins_cache();
wp_clean_plugins_cache( $clear_update_cache );

}

Expand Down

0 comments on commit a9a136d

Please sign in to comment.