Comments: Add 'parent__in' and 'parent__not_in' to query var defaults.

Query var defaults are used to calculate a cache key. The fact that these
params were not listed among the defaults was causing cache keys to be
insufficiently specific.

Props danielbachhuber.
Fixes #35677.
Built from https://develop.svn.wordpress.org/trunk@36479


git-svn-id: http://core.svn.wordpress.org/trunk@36446 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Boone Gorges 2016-02-05 18:36:28 +00:00
parent e42e8c6d72
commit 8e5cf1c2fe
2 changed files with 3 additions and 1 deletions

View File

@ -273,6 +273,8 @@ class WP_Comment_Query {
'orderby' => '', 'orderby' => '',
'order' => 'DESC', 'order' => 'DESC',
'parent' => '', 'parent' => '',
'parent__in' => '',
'parent__not_in' => '',
'post_author__in' => '', 'post_author__in' => '',
'post_author__not_in' => '', 'post_author__not_in' => '',
'post_ID' => '', 'post_ID' => '',

View File

@ -4,7 +4,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '4.5-alpha-36478'; $wp_version = '4.5-alpha-36479';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.