diff --git a/wp-includes/class-wp.php b/wp-includes/class-wp.php index f2de5f4143..14beeaa338 100644 --- a/wp-includes/class-wp.php +++ b/wp-includes/class-wp.php @@ -95,6 +95,17 @@ class WP { $this->public_query_vars[] = $qv; } + /** + * Remove name from list of public query variables. + * + * @since 4.5.0 + * + * @param string $name Query variable name. + */ + public function remove_query_var( $name ) { + $this->public_query_vars = array_diff( $this->public_query_vars, array( $name ) ); + } + /** * Set the value of a query variable. * diff --git a/wp-includes/version.php b/wp-includes/version.php index 9c70852b06..e917a53bb4 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -4,7 +4,7 @@ * * @global string $wp_version */ -$wp_version = '4.5-alpha-36176'; +$wp_version = '4.5-alpha-36177'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.