mirror of
git://develop.git.wordpress.org/
synced 2025-03-21 12:29:53 +01:00
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. git-svn-id: https://develop.svn.wordpress.org/trunk@52830 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
176afff375
commit
87844a6eb2
@ -3990,7 +3990,7 @@ function _prime_term_caches( $term_ids, $update_meta_cache = true ) {
|
||||
if ( ! empty( $non_cached_ids ) ) {
|
||||
$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 ) ) ) );
|
||||
|
||||
update_term_cache( $fresh_terms, $update_meta_cache );
|
||||
update_term_cache( $fresh_terms );
|
||||
|
||||
if ( $update_meta_cache ) {
|
||||
update_termmeta_cache( $non_cached_ids );
|
||||
|
Loading…
x
Reference in New Issue
Block a user