Make WordPress Core

Ticket #57069: 57069.2.diff

File 57069.2.diff, 758 bytes (added by viralsampat, 23 months ago)

I have checked another file and added comments.

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

    diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-posts-controller.php
    index 571a2fd5f4..3aea9575d9 100644
    a b class WP_REST_Posts_Controller extends WP_REST_Controller { 
    636636         *
    637637         * @param WP_REST_Request $request Full details about the request.
    638638         * @return WP_REST_Response|WP_Error Response object on success, or WP_Error object on failure.
     639         * @param int             $post_id The post ID to update the terms form.
    639640         */
    640641        public function create_item( $request ) {
    641642                if ( ! empty( $request['id'] ) ) {