From 4d115e4875b7e58fa20396c8cfdf9ef3504cd8ff Mon Sep 17 00:00:00 2001 From: Drew Jaynes Date: Mon, 31 Oct 2016 05:49:25 +0000 Subject: [PATCH] Docs: The `query_vars` filter used in the REST posts controller should be notated as a duplicate rather than a new hook. See #38398. git-svn-id: https://develop.svn.wordpress.org/trunk@39049 602fd350-edb4-49c9-b593-d223f7449a82 --- .../endpoints/class-wp-rest-posts-controller.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php index b36ba66654..ad55ac748b 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php @@ -844,15 +844,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller { protected function get_allowed_query_vars( $request = null ) { global $wp; - /** - * Filters the publicly allowed query vars. - * - * Allows adjusting of the default query vars that are made public. - * - * @since 4.7.0 - * - * @param array Array of allowed WP_Query query vars. - */ + /** This filter is documented in wp-includes/class-wp.php */ $valid_vars = apply_filters( 'query_vars', $wp->public_query_vars ); $post_type_obj = get_post_type_object( $this->post_type );