[wp-trac] [WordPress Trac] #57879: fix rest_get_endpoint_args_for_schema() to allow user-defined sanitize and validate callbacks.
WordPress Trac
noreply at wordpress.org
Tue Mar 7 07:19:39 UTC 2023
#57879: fix rest_get_endpoint_args_for_schema() to allow user-defined sanitize and
validate callbacks.
-------------------------+-------------------------------------------------
Reporter: mi5t4n | Owner: (none)
Type: defect | Status: new
(bug) |
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: trunk
Severity: normal | Keywords: has-patch 2nd-opinion has-unit-
Focuses: rest-api | tests
-------------------------+-------------------------------------------------
`rest_get_endpoint_args_for_schema()` doesn't allow user-defined
validation and sanitize callbacks. It always uses
`rest_validate_request_arg` and `rest_sanitize_request_arg` functions to
validate and sanitize. This ticket fixes this.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57879>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list