- 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-revisions-controller.php
r51000 r51786 536 536 * 537 537 * @since 4.7.0 538 * 539 * @param WP_Post $post Post revision object. 538 * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support. 539 * 540 * @param WP_Post $item Post revision object. 540 541 * @param WP_REST_Request $request Request object. 541 542 * @return WP_REST_Response Response object. 542 543 */ 543 public function prepare_item_for_response( $post, $request ) { 544 public function prepare_item_for_response( $item, $request ) { 545 // Restores the more descriptive, specific name for use within this method. 546 $post = $item; 544 547 $GLOBALS['post'] = $post; 545 548
Note: See TracChangeset
for help on using the changeset viewer.