Make WordPress Core

Ticket #55162: 55162.diff

File 55162.diff, 677 bytes (added by david.binda, 3 years ago)
  • src/wp-includes/taxonomy.php

     
    39903990        if ( ! empty( $non_cached_ids ) ) {
    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 ) {
    39963996                        update_termmeta_cache( $non_cached_ids );