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
This commit is contained in:
Drew Jaynes 2013-10-27 07:48:34 +00:00
parent 0bb0c068ef
commit 0969689efb
1 changed files with 1 additions and 2 deletions

View File

@ -245,7 +245,6 @@ class WP {
} }
} }
$this->public_query_vars;
/** /**
* Filter the query variables whitelist before processing. * Filter the query variables whitelist before processing.
* *
@ -257,7 +256,7 @@ class WP {
* *
* @param array $public_query_vars The array of whitelisted query variables. * @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 ) foreach ( get_post_types( array(), 'objects' ) as $post_type => $t )
if ( $t->query_var ) if ( $t->query_var )