diff --git a/src/wp-includes/taxonomy.php b/src/wp-includes/taxonomy.php index 3183a26f6f..d503d79bdc 100644 --- a/src/wp-includes/taxonomy.php +++ b/src/wp-includes/taxonomy.php @@ -3620,11 +3620,13 @@ function clean_term_cache($ids, $taxonomy = '', $clean_taxonomy = true) { * Fires once after each taxonomy's term cache has been cleaned. * * @since 2.5.0 + * @since 4.5.0 Added $clean_taxonomy param. * * @param array $ids An array of term IDs. * @param string $taxonomy Taxonomy slug. + * @param bool $clean_taxonomy Whether or not to clean taxonomy-wide caches */ - do_action( 'clean_term_cache', $ids, $taxonomy ); + do_action( 'clean_term_cache', $ids, $taxonomy, $clean_taxonomy ); } wp_cache_set( 'last_changed', microtime(), 'terms' );