WordPress.org

Make WordPress Core

Ticket #48616: 48616.patch

File 48616.patch, 1.1 KB (added by diddledan, 7 months ago)

Patch to set param type to object

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

    From 85bab1026694fa932a41695eeceae87ffca38c9f Mon Sep 17 00:00:00 2001
    From: Daniel Llewellyn <daniel@bowlhat.net>
    Date: Wed, 13 Nov 2019 21:27:34 +0000
    Subject: [PATCH] Update
     wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
    
    Set param type of `$item` for `WP_REST_Terms_Controller::prepare_item_for_response()`
    to `object`.
    ---
     .../rest-api/endpoints/class-wp-rest-terms-controller.php       | 2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php b/wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php
    index 5b0f84578b..50925e1d55 100644
    a b class WP_REST_Terms_Controller extends WP_REST_Controller { 
    718718         *
    719719         * @since 4.7.0
    720720         *
    721          * @param obj             $item    Term object.
     721         * @param object          $item    Term object.
    722722         * @param WP_REST_Request $request Request object.
    723723         * @return WP_REST_Response $response Response object.
    724724         */