diff --git a/lib/endpoints/class-wp-rest-comments-controller.php b/lib/endpoints/class-wp-rest-comments-controller.php index 1ac353435c..26d99ff648 100755 --- a/lib/endpoints/class-wp-rest-comments-controller.php +++ b/lib/endpoints/class-wp-rest-comments-controller.php @@ -741,7 +741,8 @@ public function get_item_schema() { foreach ( $avatar_sizes as $size ) { $avatar_properties[ $size ] = array( 'description' => 'Avatar URL with image size of ' . $size . ' pixels.', - 'type' => 'uri', + 'type' => 'string', + 'format' => 'uri', 'context' => array( 'embed', 'view', 'edit' ), ); } diff --git a/lib/endpoints/class-wp-rest-users-controller.php b/lib/endpoints/class-wp-rest-users-controller.php index e54b39b9ec..ed1c3533f8 100755 --- a/lib/endpoints/class-wp-rest-users-controller.php +++ b/lib/endpoints/class-wp-rest-users-controller.php @@ -629,7 +629,8 @@ public function get_item_schema() { foreach ( $avatar_sizes as $size ) { $avatar_properties[ $size ] = array( 'description' => 'Avatar URL with image size of ' . $size . ' pixels.', - 'type' => 'uri', + 'type' => 'string', + 'format' => 'uri', 'context' => array( 'embed', 'view', 'edit' ), ); }