Make WordPress Core


Ignore:
Timestamp:
07/01/2021 09:11:29 AM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct documentation for rest_{$post_type}_query and rest_{$taxonomy}_query filters.

Synchronize documentation for related rest_{$object_type}_query filters for consistency.

Props dlh.
Fixes #53568.

File:
1 edited

Legend:

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

    r51000 r51293  
    262262
    263263        /**
    264          * Filters arguments, before passing to WP_Comment_Query, when querying comments via the REST API.
     264         * Filters WP_Comment_Query arguments when querying comments via the REST API.
    265265         *
    266266         * @since 4.7.0
     
    269269         *
    270270         * @param array           $prepared_args Array of arguments for WP_Comment_Query.
    271          * @param WP_REST_Request $request       The current request.
     271         * @param WP_REST_Request $request       The REST API request.
    272272         */
    273273        $prepared_args = apply_filters( 'rest_comment_query', $prepared_args, $request );
Note: See TracChangeset for help on using the changeset viewer.