Skip to content

Commit 40fc663

Browse files
committed
Updates short array syntax usage.
1 parent f1ff8ad commit 40fc663

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
@@ -1139,11 +1139,11 @@ public function prepare_item_for_response( $item, $request ) {
11391139

11401140
if ( in_array( 'i_replied', $fields, true ) ) {
11411141
$data['i_replied'] = (bool) get_comments(
1142-
[
1142+
array(
11431143
'user_id' => get_current_user_id(),
11441144
'parent' => $comment->comment_ID,
11451145
'count' => true,
1146-
]
1146+
)
11471147
);
11481148
}
11491149

0 commit comments

Comments
 (0)