Make WordPress Core

Ticket #35611: 35611.patch

File 35611.patch, 1.6 KB (added by spacedmonkey, 9 years ago)
  • wp-includes/taxonomy.php

    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) { 
    35653565 * Will remove all of the term ids from the cache.
    35663566 *
    35673567 * @since 2.3.0
     3568 * @since 4.5.0  Added $clean_taxonomy param to clean_term_cache action.
    35683569 *
    35693570 * @global wpdb $wpdb WordPress database abstraction object.
    35703571 * @global bool $_wp_suspend_cache_invalidation
    function clean_object_term_cache($object_ids, $object_type) { 
    35753576 * @param bool      $clean_taxonomy Optional. Whether to clean taxonomy wide caches (true), or just individual
    35763577 *                                  term object caches (false). Default true.
    35773578 */
    3578 function clean_term_cache($ids, $taxonomy = '', $clean_taxonomy = true) {
     3579function clean_term_cache( $ids, $taxonomy = '', $clean_taxonomy = true ) {
    35793580        global $wpdb, $_wp_suspend_cache_invalidation;
    35803581
    35813582        if ( ! empty( $_wp_suspend_cache_invalidation ) ) {
    function clean_term_cache($ids, $taxonomy = '', $clean_taxonomy = true) { 
    36203621                 * Fires once after each taxonomy's term cache has been cleaned.
    36213622                 *
    36223623                 * @since 2.5.0
     3624                 * @since 4.5.0  Added $clean_taxonomy param.
    36233625                 *
    36243626                 * @param array  $ids      An array of term IDs.
    36253627                 * @param string $taxonomy Taxonomy slug.
     3628                 * @param bool   $clean_taxonomy  Whether or not to clean taxonomy wide caches
    36263629                 */
    3627                 do_action( 'clean_term_cache', $ids, $taxonomy );
     3630                do_action( 'clean_term_cache', $ids, $taxonomy, $clean_taxonomy );
    36283631        }
    36293632
    36303633        wp_cache_set( 'last_changed', microtime(), 'terms' );