Skip to content

Commit f1ff8ad

Browse files
committed
Updates type in comment endpoint schema.
1 parent e1fcd9b commit f1ff8ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wp-includes/rest-api/endpoints/class-wp-rest-comments-controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1556,13 +1556,13 @@ public function get_item_schema() {
15561556
),
15571557
'i_replied' => array(
15581558
'description' => __( 'Whether the authenticated user has replied to the comment.' ),
1559-
'type' => 'string',
1559+
'type' => 'boolean',
15601560
'context' => array( 'view', 'edit' ),
15611561
'readonly' => true,
15621562
),
15631563
'can_moderate' => array(
15641564
'description' => __( 'Whether the authenticated can moderate the comment.' ),
1565-
'type' => 'string',
1565+
'type' => 'boolean',
15661566
'context' => array( 'view', 'edit' ),
15671567
'readonly' => true,
15681568
),

0 commit comments

Comments
 (0)