From 0969689efbc456f6fe07e9b4dbf07e0ac8d972c9 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 27 Oct 2013 07:48:34 +0000 Subject: [PATCH] Fix error introduced in [25940] where `$public_query_vars` should have only been used as a non-existent inline docs variable in the `query_vars` filter. Restores `$this->public_query_vars` to the `query_vars` filter in wp-includes/class-wp.php. Props mauryaratan. Fixes #25495. See #25719. git-svn-id: https://develop.svn.wordpress.org/trunk@25945 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/wp-includes/class-wp.php b/src/wp-includes/class-wp.php index 9a37df27e9..bb07f8a236 100644 --- a/src/wp-includes/class-wp.php +++ b/src/wp-includes/class-wp.php @@ -245,7 +245,6 @@ class WP { } } - $this->public_query_vars; /** * Filter the query variables whitelist before processing. * @@ -257,7 +256,7 @@ class WP { * * @param array $public_query_vars The array of whitelisted query variables. */ - $this->public_query_vars = apply_filters( 'query_vars', $public_query_vars ); + $this->public_query_vars = apply_filters( 'query_vars', $this->public_query_vars ); foreach ( get_post_types( array(), 'objects' ) as $post_type => $t ) if ( $t->query_var )