- Timestamp:
- 09/09/2021 06:35:34 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/rest-api/endpoints/class-wp-rest-autosaves-controller.php
r51298 r51786 397 397 * 398 398 * @since 5.0.0 399 * 400 * @param WP_Post $post Post revision object. 399 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support. 400 * 401 * @param WP_Post $item Post revision object. 401 402 * @param WP_REST_Request $request Request object. 402 403 * @return WP_REST_Response Response object. 403 404 */ 404 public function prepare_item_for_response( $post, $request ) { 405 405 public function prepare_item_for_response( $item, $request ) { 406 // Restores the more descriptive, specific name for use within this method. 407 $post = $item; 406 408 $response = $this->revisions_controller->prepare_item_for_response( $post, $request ); 407 409
Note: See TracChangeset
for help on using the changeset viewer.