Make WordPress Core

Changeset 39049


Ignore:
Timestamp:
10/31/2016 05:49:25 AM (10 years ago)
Author:
DrewAPicture
Message:

Docs: The query_vars filter used in the REST posts controller should be notated as a duplicate rather than a new hook.

See #38398.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php

    r39047 r39049  
    845845                global $wp;
    846846
    847                 /**
    848                  * Filters the publicly allowed query vars.
    849                  *
    850                  * Allows adjusting of the default query vars that are made public.
    851                  *
    852                  * @since 4.7.0
    853                  *
    854                  * @param array  Array of allowed WP_Query query vars.
    855                  */
     847                /** This filter is documented in wp-includes/class-wp.php */
    856848                $valid_vars = apply_filters( 'query_vars', $wp->public_query_vars );
    857849
Note: See TracChangeset for help on using the changeset viewer.