[wp-trac] [WordPress Trac] #39042: REST API: Allow sanitization_callback to be set to null to bypass `rest_parse_request_arg()`
WordPress Trac
noreply at wordpress.org
Sat Dec 3 19:44:04 UTC 2016
#39042: REST API: Allow sanitization_callback to be set to null to bypass
`rest_parse_request_arg()`
------------------------------------------+--------------------
Reporter: rachelbaker | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.7.1
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: needs-patch needs-unit-tests | Focuses:
------------------------------------------+--------------------
Changes (by rachelbaker):
* keywords: needs-patch => needs-patch needs-unit-tests
Comment:
One way we can check if `sanitization_callback` is `null` would be to add
a check for `array_key_exists( 'sanitize_callback', $attributes['args'][
$key ] )`.
We should also add a unit test as @jnylen0 suggested in the original
ticket: https://core.trac.wordpress.org/ticket/38593#comment:4
--
Ticket URL: <https://core.trac.wordpress.org/ticket/39042#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list