Skip to content

Commit 5478ef7

Browse files
update test and controller
1 parent d3ab69e commit 5478ef7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1255,7 +1255,6 @@ protected function prepare_links( $comment ) {
12551255
'count' => true,
12561256
'orderby' => 'none',
12571257
'type' => $comment->comment_type,
1258-
'status' => 'all',
12591258
)
12601259
);
12611260

tests/phpunit/tests/rest-api/rest-comments-controller.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4078,7 +4078,7 @@ public function data_note_status_provider() {
40784078
public function test_get_note_with_children_link() {
40794079
$comment_id_1 = self::factory()->comment->create(
40804080
array(
4081-
'comment_approved' => 0,
4081+
'comment_approved' => 1,
40824082
'comment_post_ID' => self::$post_id,
40834083
'user_id' => self::$subscriber_id,
40844084
'comment_type' => 'note',
@@ -4087,7 +4087,7 @@ public function test_get_note_with_children_link() {
40874087

40884088
self::factory()->comment->create(
40894089
array(
4090-
'comment_approved' => 0,
4090+
'comment_approved' => 1,
40914091
'comment_parent' => $comment_id_1,
40924092
'comment_post_ID' => self::$post_id,
40934093
'user_id' => self::$subscriber_id,

0 commit comments

Comments
 (0)