Make WordPress Core

Ticket #57150: 57150.patch

File 57150.patch, 750 bytes (added by skithund, 2 years ago)
  • wp-includes/post.php

    old new  
    78027802                        $cached_term_ids = wp_cache_get_multiple( $post_ids, "{$taxonomy}_relationships" );
    78037803                        if ( is_array( $cached_term_ids ) ) {
    78047804                                $cached_term_ids = array_filter( $cached_term_ids );
    7805                                 foreach ( $cached_term_ids as $term_ids ) {
     7805                                foreach ( $cached_term_ids as $_term_ids ) {
    78067806                                        // 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 ) {
    78087808                                                if ( is_numeric( $term_id ) ) {
    78097809                                                        $prime_term_ids[]                  = (int) $term_id;
    78107810                                                        $prime_taxonomy_ids[ $taxonomy ][] = (int) $term_id;