Parsed: 131456

  public function get_theme_items( $request ) {
    if ( get_stylesheet() !== $request['stylesheet'] ) {
      // This endpoint only supports the active theme for now.
      return new WP_Error(
        'rest_theme_not_found',
        __( 'Theme not found.' ),
        array( 'status' => 404 )
      );
    }

    $variations = WP_Theme_JSON_Resolver::get_style_variations();
    $response   = rest_ensure_response( $variations );

    return $response;
  }