Skip to content
This repository was archived by the owner on Sep 24, 2018. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/endpoints/class-wp-rest-comments-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
);
}
Expand Down
3 changes: 2 additions & 1 deletion lib/endpoints/class-wp-rest-users-controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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' ),
);
}
Expand Down