From c01501b5160b67a8d47b78e99dd0bfa8c0045086 Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Sun, 27 Oct 2013 07:49:09 +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. Built from https://develop.svn.wordpress.org/trunk@25945 git-svn-id: http://core.svn.wordpress.org/trunk@25904 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wp-includes/class-wp.php b/wp-includes/class-wp.php index 9a37df27e9..bb07f8a236 100644 --- a/wp-includes/class-wp.php +++ b/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 )