Make WordPress Core

Changeset 59028


Ignore:
Timestamp:
09/17/2024 04:58:10 PM (2 weeks ago)
Author:
flixos90
Message:

Taxonomy: Remove redundant $taxonomies value from cache keys used for WP_Term_Query.

Props niravsherasiya7707, spacedmonkey.
Fixes #59594.
See #35381.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/class-wp-term-query.php

    r57750 r59028  
    11711171            $cache_args['fields'] = 'all';
    11721172        }
    1173         $taxonomies = (array) $args['taxonomy'];
    11741173
    11751174        // Replace wpdb placeholder in the SQL statement used by the cache key.
    11761175        $sql = $wpdb->remove_placeholder_escape( $sql );
    11771176
    1178         $key          = md5( serialize( $cache_args ) . serialize( $taxonomies ) . $sql );
     1177        $key          = md5( serialize( $cache_args ) . $sql );
    11791178        $last_changed = wp_cache_get_last_changed( 'terms' );
    11801179        return "get_terms:$key:$last_changed";
Note: See TracChangeset for help on using the changeset viewer.