Ticket #57150: 57150.patch
File 57150.patch, 750 bytes (added by , 2 years ago) |
---|
-
wp-includes/post.php
old new 7802 7802 $cached_term_ids = wp_cache_get_multiple( $post_ids, "{$taxonomy}_relationships" ); 7803 7803 if ( is_array( $cached_term_ids ) ) { 7804 7804 $cached_term_ids = array_filter( $cached_term_ids ); 7805 foreach ( $cached_term_ids as $ term_ids ) {7805 foreach ( $cached_term_ids as $_term_ids ) { 7806 7806 // Backward compatibility for if a plugin is putting objects into the cache, rather than IDs. 7807 foreach ( $ term_ids as $term_id ) {7807 foreach ( $_term_ids as $term_id ) { 7808 7808 if ( is_numeric( $term_id ) ) { 7809 7809 $prime_term_ids[] = (int) $term_id; 7810 7810 $prime_taxonomy_ids[ $taxonomy ][] = (int) $term_id;