WordPress.org

Make WordPress Core


Ignore:
Timestamp:
12/20/2016 01:36:47 AM (3 years ago)
Author:
jnylen0
Message:

REST API: Improve the rest_*_collection_params filter docs and fix the terms filter.

The rest_{$taxonomy}_collection_params filter in 4.7 is incorrectly using
single quotes instead of double quotes, which means it is not working correctly
as a dynamic filter. This fixes the quotes around the filter name, and also
updates the docblocks for the other 3 similar filters for better conformance to
the documentation standards.

Props shazahm1hotmailcom, JPry, jnylen0.
Fixes #39300.

File:
1 edited

Legend:

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

    r39438 r39621  
    13521352         * @since 4.7.0
    13531353         *
    1354          * @param $params JSON Schema-formatted collection parameters.
     1354         * @param array $query_params JSON Schema-formatted collection parameters.
    13551355         */
    13561356        return apply_filters( 'rest_user_collection_params', $query_params );
Note: See TracChangeset for help on using the changeset viewer.