WordPress.org

Make WordPress Core

Ticket #39300: 39300.2.diff

File 39300.2.diff, 921 bytes (added by JPry, 5 years ago)

Update the docblock

  • src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php

    diff --git src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php src/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
    index 6ca86ca15..b8a1390d3 100644
    class WP_REST_Terms_Controller extends WP_REST_Controller { 
    971971                 *
    972972                 * @since 4.7.0
    973973                 *
    974                  * @param $params JSON Schema-formatted collection parameters.
    975                  * @param WP_Taxonomy $taxonomy_obj Taxonomy object.
     974                 * @param array       $query_params JSON Schema-formatted collection parameters.
     975                 * @param WP_Taxonomy $taxonomy    Taxonomy object.
    976976                 */
    977                 return apply_filters( 'rest_{$this->taxonomy}_collection_params', $query_params, $taxonomy );
     977                return apply_filters( "rest_{$this->taxonomy}_collection_params", $query_params, $taxonomy );
    978978        }
    979979
    980980        /**