[wp-trac] [WordPress Trac] #39779: rest_parse_request_arg
WordPress Trac
noreply at wordpress.org
Fri Feb 3 18:08:13 UTC 2017
#39779: rest_parse_request_arg
-------------------------+-----------------------------
Reporter: pissio | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: REST API | Version: 4.7.2
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
rest_parse_request_arg( $value, $request, $param )
function performs twice rest_validate_request_arg.
Both times returns the returned value, whether it is an error or valid
value.
Why not simply return rest_sanitize_request_arg value the first time?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39779>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list