Parsed: 123843

<?php

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

/* class WP_REST_Comments_Controller */
/* function WP_REST_Comments_Controller::__construct() – Constructor. */
/* function WP_REST_Comments_Controller::register_routes() – Registers the routes for comments. */
/* function WP_REST_Comments_Controller::get_items_permissions_check() – Checks if a given request has access to read comments. */
/* function WP_REST_Comments_Controller::get_items() – Retrieves a list of comment items. */
/* function WP_REST_Comments_Controller::get_comment() – Get the comment, if the ID is valid. */
/* function WP_REST_Comments_Controller::get_item_permissions_check() – Checks if a given request has access to read the comment. */
/* function WP_REST_Comments_Controller::get_item() – Retrieves a comment. */
/* function WP_REST_Comments_Controller::create_item_permissions_check() – Checks if a given request has access to create a comment. */
/* function WP_REST_Comments_Controller::create_item() – Creates a comment. */
/* function WP_REST_Comments_Controller::update_item_permissions_check() – Checks if a given REST request has access to update a comment. */
/* function WP_REST_Comments_Controller::update_item() – Updates a comment. */
/* function WP_REST_Comments_Controller::delete_item_permissions_check() – Checks if a given request has access to delete a comment. */
/* function WP_REST_Comments_Controller::delete_item() – Deletes a comment. */
/* function WP_REST_Comments_Controller::prepare_item_for_response() – Prepares a single comment output for response. */
/* function WP_REST_Comments_Controller::prepare_links() – Prepares links for the request. */
/* function WP_REST_Comments_Controller::normalize_query_param() – Prepends internal property prefix to query parameters to match our response fields. */
/* function WP_REST_Comments_Controller::prepare_status_response() – Checks comment_approved to set comment status for single comment output. */
/* function WP_REST_Comments_Controller::prepare_item_for_database() – Prepares a single comment to be inserted into the database. */
/* function WP_REST_Comments_Controller::get_item_schema() – Retrieves the comment’s schema, conforming to JSON Schema. */
/* function WP_REST_Comments_Controller::get_collection_params() – Retrieves the query params for collections. */
/* function WP_REST_Comments_Controller::handle_status_param() – Sets the comment_status of a given comment object when creating or updating a comment. */
/* function WP_REST_Comments_Controller::check_read_post_permission() – Checks if the post can be read. */
/* function WP_REST_Comments_Controller::check_read_permission() – Checks if the comment can be read. */
/* function WP_REST_Comments_Controller::check_edit_permission() – Checks if a comment can be edited or deleted. */
/* function WP_REST_Comments_Controller::check_comment_author_email() – Checks a comment author email for validity. */
/* function WP_REST_Comments_Controller::check_is_comment_content_allowed() – If empty comments are not allowed, checks if the provided comment content is not empty. */