Make WordPress Core

Changeset 55401


Ignore:
Timestamp:
02/21/2023 09:02:28 PM (20 months ago)
Author:
ocean90
Message:

Taxonomy: Rename temporary variable in wp_queue_posts_for_term_meta_lazyload().

This ensures the $term_ids variable only contains term IDs and is not filled with full term objects due to deprecated term caching.

Introduced in [55252].

Props skithund, Chouby, joemcgill, flixos90, ocean90.
Fixes #57150.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r55365 r55401  
    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;
Note: See TracChangeset for help on using the changeset viewer.