Skip to content

Commit 1f00d27

Browse files
author
Salil Kothadia
authored
Merge pull request #19 from ostowe/author-validation-items
Author validation items
2 parents b5f677a + c9cfe7a commit 1f00d27

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/endpoints/class-wp-rest-multiple-posttype-controller.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -344,13 +344,19 @@ public function get_collection_params() {
344344
'default' => array(),
345345
'sanitize_callback' => 'wp_parse_id_list',
346346
'validate_callback' => 'rest_validate_request_arg',
347+
'items' => array(
348+
'type' => 'integer',
349+
),
347350
);
348351
$params['author_exclude'] = array(
349352
'description' => __('Ensure result set excludes posts assigned to specific authors.'),
350353
'type' => 'array',
351354
'default' => array(),
352355
'sanitize_callback' => 'wp_parse_id_list',
353356
'validate_callback' => 'rest_validate_request_arg',
357+
'items' => array(
358+
'type' => 'integer',
359+
),
354360
);
355361

356362
$params['before'] = array(

0 commit comments

Comments
 (0)