Make WordPress Core

Ticket #35075: 35075.3.patch

File 35075.3.patch, 673 bytes (added by jason_the_adams, 9 years ago)
  • src/wp-includes/class-wp-comment-query.php

    diff --git a/src/wp-includes/class-wp-comment-query.php b/src/wp-includes/class-wp-comment-query.php
    index e30094d..11c967a 100644
    a b class WP_Comment_Query { 
    363363                }
    364364
    365365                // $args can include anything. Only use the args defined in the query_var_defaults to compute the key.
    366                 $key = md5( serialize( wp_array_slice_assoc( $this->query_vars, array_keys( $this->query_var_defaults ) ) ) );
     366                $key = md5( serialize( $this->query_vars ) );
    367367                $last_changed = wp_cache_get( 'last_changed', 'comment' );
    368368                if ( ! $last_changed ) {
    369369                        $last_changed = microtime();