Parsed: 124091

<?php

/**
 * REST API: WP_REST_Revisions_Controller class
 *
 * @package WordPress
 * @subpackage REST_API
 * @since 4.7.0
 */

/* class WP_REST_Revisions_Controller */
/* function WP_REST_Revisions_Controller::__construct() – Constructor. */
/* function WP_REST_Revisions_Controller::register_routes() – Registers the routes for revisions based on post types supporting revisions. */
/* function WP_REST_Revisions_Controller::get_parent() – Get the parent post, if the ID is valid. */
/* function WP_REST_Revisions_Controller::get_items_permissions_check() – Checks if a given request has access to get revisions. */
/* function WP_REST_Revisions_Controller::get_revision() – Get the revision, if the ID is valid. */
/* function WP_REST_Revisions_Controller::get_items() – Gets a collection of revisions. */
/* function WP_REST_Revisions_Controller::get_item_permissions_check() – Checks if a given request has access to get a specific revision. */
/* function WP_REST_Revisions_Controller::get_item() – Retrieves one revision from the collection. */
/* function WP_REST_Revisions_Controller::delete_item_permissions_check() – Checks if a given request has access to delete a revision. */
/* function WP_REST_Revisions_Controller::delete_item() – Deletes a single revision. */
/* function WP_REST_Revisions_Controller::prepare_items_query() – Determines the allowed query_vars for a get_items() response and prepares
them for WP_Query. */
/* function WP_REST_Revisions_Controller::prepare_item_for_response() – Prepares the revision for the REST response. */
/* function WP_REST_Revisions_Controller::prepare_date_response() – Checks the post_date_gmt or modified_gmt and prepare any post or
modified date for single post output. */
/* function WP_REST_Revisions_Controller::get_item_schema() – Retrieves the revision’s schema, conforming to JSON Schema. */
/* function WP_REST_Revisions_Controller::get_collection_params() – Retrieves the query params for collections. */
/* function WP_REST_Revisions_Controller::prepare_excerpt_response() – Checks the post excerpt and prepare it for single post output. */