$sidebar =
$this->
get_sidebar( $id );
if ( !
$sidebar ) { continue;
} if ( $this->
check_read_permission( $sidebar ) ) { return true;
} } return $this->
do_permissions_check();
} /**
* Retrieves the list of sidebars (active or inactive).
*
* @since 5.8.0
*
* @param WP_REST_Request $request Full details about the request.
* @return WP_REST_Response Response object on success.
*/
public function get_items( $request ) {