Skip to content

Commit f980a6c

Browse files
Ensure REST controller returns children for ‘note’ type
1 parent 82fbb38 commit f980a6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,6 +1254,8 @@ protected function prepare_links( $comment ) {
12541254
array(
12551255
'count' => true,
12561256
'orderby' => 'none',
1257+
'type' => $comment->comment_type,
1258+
'status' => 'all',
12571259
)
12581260
);
12591261

0 commit comments

Comments
 (0)