mirror of
https://github.com/WordPress/WordPress.git
synced 2025-01-22 16:21:26 +01:00
Docs: The query_vars
filter used in the REST posts controller should be notated as a duplicate rather than a new hook.
See #38398. Built from https://develop.svn.wordpress.org/trunk@39049 git-svn-id: http://core.svn.wordpress.org/trunk@38991 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
54b378e411
commit
9635867540
@ -844,15 +844,7 @@ class WP_REST_Posts_Controller extends WP_REST_Controller {
|
|||||||
protected function get_allowed_query_vars( $request = null ) {
|
protected function get_allowed_query_vars( $request = null ) {
|
||||||
global $wp;
|
global $wp;
|
||||||
|
|
||||||
/**
|
/** This filter is documented in wp-includes/class-wp.php */
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
$valid_vars = apply_filters( 'query_vars', $wp->public_query_vars );
|
$valid_vars = apply_filters( 'query_vars', $wp->public_query_vars );
|
||||||
|
|
||||||
$post_type_obj = get_post_type_object( $this->post_type );
|
$post_type_obj = get_post_type_object( $this->post_type );
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @global string $wp_version
|
||||||
*/
|
*/
|
||||||
$wp_version = '4.7-beta1-39048';
|
$wp_version = '4.7-beta1-39049';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user