From ef72cc7b8655a31039d27bf23b53b1a9b779c9c2 Mon Sep 17 00:00:00 2001 From: Boone Gorges Date: Tue, 26 Jan 2016 02:17:02 +0000 Subject: [PATCH] Pass `$clean_taxonomy` param to 'clean_term_cache' action. Props spacedmonkey. Fixes #35611. git-svn-id: https://develop.svn.wordpress.org/trunk@36399 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/taxonomy.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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' );