[wp-trac] [WordPress Trac] #38529: REST API controllers should not use the default sanitizers for polymorphic arguments
WordPress Trac
noreply at wordpress.org
Thu Oct 27 17:17:56 UTC 2016
#38529: REST API controllers should not use the default sanitizers for polymorphic
arguments
-------------------------------------+-----------------------
Reporter: joehoyle | Owner: joehoyle
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.7
Component: REST API | Version:
Severity: normal | Resolution:
Keywords: has-patch needs-refresh | Focuses:
-------------------------------------+-----------------------
Changes (by rachelbaker):
* keywords: commit => has-patch needs-refresh
* owner: rachelbaker => joehoyle
Comment:
@joehoyle The comment here is a little confusing. `Note: sanitization
implemented in callback.` would lead me to expect there SHOULD be a
callback function set here.
Instead, you are setting the `sanitize_callback` to `null` and instead the
sanitization/validation is handled within the controllers
`prepare_item_for_database()` method.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38529#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list