[wp-trac] [WordPress Trac] #38984: REST API: Fix incorrect calls to `rest_sanitize_value_from_schema`
WordPress Trac
noreply at wordpress.org
Wed Nov 30 00:44:44 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 jnylen0):
Yep, I wrote this code in #38739.
If we add additional schema / options here, it will presumably be for a
reason that will have unit tests and will probably be addressed in the
code for these `check_user*` functions. Until then I prefer the clarity
and explicitness of `strval` - apparently it's easy to misuse these
functions.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38984#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list