Make WordPress Core

Ticket #41411: 41411.0.diff

File 41411.0.diff, 935 bytes (added by westonruter, 7 years ago)
  • 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 299b034329..e931722654 100644
    class WP_REST_Terms_Controller extends WP_REST_Controller { 
    452452                        return $fields_update;
    453453                }
    454454
    455                 $request->set_param( 'context', 'view' );
     455                $request->set_param( 'context', 'edit' );
    456456
    457457                $response = $this->prepare_item_for_response( $term, $request );
    458458                $response = rest_ensure_response( $response );
    class WP_REST_Terms_Controller extends WP_REST_Controller { 
    543543                        return $fields_update;
    544544                }
    545545
    546                 $request->set_param( 'context', 'view' );
     546                $request->set_param( 'context', 'edit' );
    547547
    548548                $response = $this->prepare_item_for_response( $term, $request );
    549549