Parsed: 129820

<?php

/**
 * REST API: WP_REST_Sidebars_Controller class
 *
 * Original code from {@link https://github.com/martin-pettersson/wp-rest-api-sidebars Martin Pettersson (martin_pettersson@outlook.com)}.
 *
 * @package WordPress
 * @subpackage REST_API
 * @since 5.8.0
 */

/* class WP_REST_Sidebars_Controller */
/* function WP_REST_Sidebars_Controller::__construct() – Sidebars controller constructor. */
/* function WP_REST_Sidebars_Controller::register_routes() – Registers the controllers routes. */
/* function WP_REST_Sidebars_Controller::get_items_permissions_check() – Checks if a given request has access to get sidebars. */
/* function WP_REST_Sidebars_Controller::get_items() – Retrieves the list of sidebars (active or inactive). */
/* function WP_REST_Sidebars_Controller::get_item_permissions_check() – Checks if a given request has access to get a single sidebar. */
/* function WP_REST_Sidebars_Controller::check_read_permission() – Checks if a sidebar can be read publicly. */
/* function WP_REST_Sidebars_Controller::get_item() – Retrieves one sidebar from the collection. */
/* function WP_REST_Sidebars_Controller::update_item_permissions_check() – Checks if a given request has access to update sidebars. */
/* function WP_REST_Sidebars_Controller::update_item() – Updates a sidebar. */
/* function WP_REST_Sidebars_Controller::do_permissions_check() – Checks if the user has permissions to make the request. */
/* function WP_REST_Sidebars_Controller::get_sidebar() – Retrieves the registered sidebar with the given id. */
/* function WP_REST_Sidebars_Controller::retrieve_widgets() – Looks for "lost" widgets once per request. */
/* function WP_REST_Sidebars_Controller::prepare_item_for_response() – Prepares a single sidebar output for response. */
/* function WP_REST_Sidebars_Controller::prepare_links() – Prepares links for the sidebar. */
/* function WP_REST_Sidebars_Controller::get_item_schema() – Retrieves the block type’ schema, conforming to JSON Schema. */