diff --git a/src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php b/src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php index 761ee1cfd07a2..2957b213e80b5 100644 --- a/src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php +++ b/src/wp-includes/rest-api/endpoints/class-wp-rest-themes-controller.php @@ -260,18 +260,20 @@ public function get_item_schema() { ), 'author_uri' => array( 'description' => __( 'The website of the theme author.' ), - 'format' => 'uri', 'type' => 'object', + 'format' => 'uri', 'readonly' => true, 'properties' => array( 'raw' => array( 'description' => __( 'The website of the theme author, as found in the theme header.' ), - 'type' => 'uri', + 'type' => 'string', + 'format' => 'uri', 'readonly' => true, ), 'rendered' => array( 'description' => __( 'The website of the theme author, transformed for display.' ), - 'type' => 'uri', + 'type' => 'string', + 'format' => 'uri', 'readonly' => true, ), ), @@ -629,17 +631,19 @@ public function get_item_schema() { 'theme_uri' => array( 'description' => __( 'The URI of the theme\'s webpage.' ), 'type' => 'object', - 'readonly' => true, 'format' => 'uri', + 'readonly' => true, 'properties' => array( 'raw' => array( 'description' => __( 'The URI of the theme\'s webpage, as found in the theme header.' ), - 'type' => 'uri', + 'type' => 'string', + 'format' => 'uri', 'readonly' => true, ), 'rendered' => array( 'description' => __( 'The URI of the theme\'s webpage, transformed for display.' ), - 'type' => 'uri', + 'type' => 'string', + 'format' => 'uri', 'readonly' => true, ), ),