Make WordPress Core


Ignore:
Timestamp:
12/28/2023 03:17:16 PM (3 years ago)
Author:
SergeyBiryukov
Message:

Docs: Document the $post global in REST API posts and revisions controllers.

Follow-up to [38832], [40601].

Props viralsampat.
See #60021.

File:
1 edited

Legend:

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

    r57222 r57230  
    561561         * @since 5.9.0 Renamed `$post` to `$item` to match parent class for PHP 8 named parameter support.
    562562         *
     563         * @global WP_Post $post Global post object.
     564         *
    563565         * @param WP_Post         $item    Post revision object.
    564566         * @param WP_REST_Request $request Request object.
Note: See TracChangeset for help on using the changeset viewer.