Make WordPress Core

Changeset 52830


Ignore:
Timestamp:
03/08/2022 04:23:34 AM (2 years ago)
Author:
peterwilsoncc
Message:

Taxonomy: Improve code quality within _prime_term_caches().

Remove the second parameter on the call to update_term_cache() from within the function _prime_term_caches(). The since deprecated parameter of the former was at one point a string, never a boolean.

Props david.binda, SergeyBiryukov, azouamauriac.
Fixes #55162.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/taxonomy.php

    r52826 r52830  
    39913991        $fresh_terms = $wpdb->get_results( sprintf( "SELECT t.*, tt.* FROM $wpdb->terms AS t INNER JOIN $wpdb->term_taxonomy AS tt ON t.term_id = tt.term_id WHERE t.term_id IN (%s)", implode( ',', array_map( 'intval', $non_cached_ids ) ) ) );
    39923992
    3993         update_term_cache( $fresh_terms, $update_meta_cache );
     3993        update_term_cache( $fresh_terms );
    39943994
    39953995        if ( $update_meta_cache ) {
Note: See TracChangeset for help on using the changeset viewer.