[wp-trac] [WordPress Trac] #37560: Enable sanitize_callback to return WP_Error
WordPress Trac
noreply at wordpress.org
Wed Sep 14 15:49:39 UTC 2016
#37560: Enable sanitize_callback to return WP_Error
--------------------------+--------------------------
Reporter: websupporter | Owner: rachelbaker
Type: enhancement | Status: closed
Priority: normal | Milestone: 4.7
Component: REST API | Version: 4.4
Severity: normal | Resolution: fixed
Keywords: has-patch | Focuses:
--------------------------+--------------------------
Changes (by joehoyle):
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"38601"]:
{{{
#!CommitTicketReference repository="" revision="38601"
REST API: Enable sanitize_callback to return WP_Error.
Give developers the opportunity to reject incoming data without using the
validation callback. It also enables us to do sanitization and validation
in one function in instances where this could be useful.
Props websupporter, rmccue.
Fixes #37560.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/37560#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list