Skip to content

Commit f121b3e

Browse files
API handles strings automatically when array type given
1 parent 6225ae6 commit f121b3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1681,7 +1681,7 @@ public function get_collection_params() {
16811681
'default' => 'approve',
16821682
'description' => __( 'Limit result set to comments assigned a specific status. Requires authorization.' ),
16831683
'sanitize_callback' => 'sanitize_key',
1684-
'type' => array( 'string', 'array' ),
1684+
'type' => 'array',
16851685
'validate_callback' => 'rest_validate_request_arg',
16861686
);
16871687

0 commit comments

Comments
 (0)