WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/12/2019 09:28:14 PM (14 months ago)
Author:
kadamwhite
Message:

REST API: Return term resources in "edit" context after PUT or POST request.

Props westonruter, dlh.
Fixes #41411.

File:
1 edited

Legend:

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

    r45811 r46098  
    469469        }
    470470
    471         $request->set_param( 'context', 'view' );
     471        $request->set_param( 'context', 'edit' );
    472472
    473473        /**
     
    571571        }
    572572
    573         $request->set_param( 'context', 'view' );
     573        $request->set_param( 'context', 'edit' );
    574574
    575575        /** This action is documented in wp-includes/rest-api/endpoints/class-wp-rest-terms-controller.php */
Note: See TracChangeset for help on using the changeset viewer.