Ticket #55162: 55162.diff
File 55162.diff, 677 bytes (added by , 3 years ago) |
---|
-
src/wp-includes/taxonomy.php
3990 3990 if ( ! empty( $non_cached_ids ) ) { 3991 3991 $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 ) ) ) ); 3992 3992 3993 update_term_cache( $fresh_terms , $update_meta_cache);3993 update_term_cache( $fresh_terms ); 3994 3994 3995 3995 if ( $update_meta_cache ) { 3996 3996 update_termmeta_cache( $non_cached_ids );