[wp-trac] [WordPress Trac] #38984: REST API: Fix incorrect calls to `rest_sanitize_value_from_schema`
WordPress Trac
noreply at wordpress.org
Tue Nov 29 22:38:06 UTC 2016
#38984: REST API: Fix incorrect calls to `rest_sanitize_value_from_schema`
--------------------------+--------------------
Reporter: jnylen0 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7
Component: REST API | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses:
--------------------------+--------------------
Comment (by joehoyle):
@jnylen0 looking at this, I think the intention was to use
`rest_sanitize_request_arg` rather than `rest_sanitize_value_from_schema`.
I think maybe it would be better to use `rest_sanitize_request_arg` incase
these params get other schema / options in the future.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38984#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list