Skip to content

Commit 738289a

Browse files
gziolowestonruter
andauthored
Update src/wp-includes/rest-api/endpoints/class-wp-rest-abilities-list-controller.php
Co-authored-by: Weston Ruter <[email protected]>
1 parent 0c7ea92 commit 738289a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -315,8 +315,6 @@ public function get_collection_params(): array {
315315
'description' => __( 'Current page of the collection.' ),
316316
'type' => 'integer',
317317
'default' => 1,
318-
'sanitize_callback' => 'absint',
319-
'validate_callback' => 'rest_validate_request_arg',
320318
'minimum' => 1,
321319
),
322320
'per_page' => array(
@@ -325,8 +323,6 @@ public function get_collection_params(): array {
325323
'default' => self::DEFAULT_PER_PAGE,
326324
'minimum' => 1,
327325
'maximum' => 100,
328-
'sanitize_callback' => 'absint',
329-
'validate_callback' => 'rest_validate_request_arg',
330326
),
331327
'category' => array(
332328
'description' => __( 'Limit results to abilities in specific category.' ),

0 commit comments

Comments
 (0)