diff --git a/wp-includes/taxonomy.php b/wp-includes/taxonomy.php
index 3183a26..187655f 100644
a
|
b
|
function clean_object_term_cache($object_ids, $object_type) { |
3565 | 3565 | * Will remove all of the term ids from the cache. |
3566 | 3566 | * |
3567 | 3567 | * @since 2.3.0 |
| 3568 | * @since 4.5.0 Added $clean_taxonomy param to clean_term_cache action. |
3568 | 3569 | * |
3569 | 3570 | * @global wpdb $wpdb WordPress database abstraction object. |
3570 | 3571 | * @global bool $_wp_suspend_cache_invalidation |
… |
… |
function clean_object_term_cache($object_ids, $object_type) { |
3575 | 3576 | * @param bool $clean_taxonomy Optional. Whether to clean taxonomy wide caches (true), or just individual |
3576 | 3577 | * term object caches (false). Default true. |
3577 | 3578 | */ |
3578 | | function clean_term_cache($ids, $taxonomy = '', $clean_taxonomy = true) { |
| 3579 | function clean_term_cache( $ids, $taxonomy = '', $clean_taxonomy = true ) { |
3579 | 3580 | global $wpdb, $_wp_suspend_cache_invalidation; |
3580 | 3581 | |
3581 | 3582 | if ( ! empty( $_wp_suspend_cache_invalidation ) ) { |
… |
… |
function clean_term_cache($ids, $taxonomy = '', $clean_taxonomy = true) { |
3620 | 3621 | * Fires once after each taxonomy's term cache has been cleaned. |
3621 | 3622 | * |
3622 | 3623 | * @since 2.5.0 |
| 3624 | * @since 4.5.0 Added $clean_taxonomy param. |
3623 | 3625 | * |
3624 | 3626 | * @param array $ids An array of term IDs. |
3625 | 3627 | * @param string $taxonomy Taxonomy slug. |
| 3628 | * @param bool $clean_taxonomy Whether or not to clean taxonomy wide caches |
3626 | 3629 | */ |
3627 | | do_action( 'clean_term_cache', $ids, $taxonomy ); |
| 3630 | do_action( 'clean_term_cache', $ids, $taxonomy, $clean_taxonomy ); |
3628 | 3631 | } |
3629 | 3632 | |
3630 | 3633 | wp_cache_set( 'last_changed', microtime(), 'terms' ); |