wordpress-develop/src/wp-includes/rest-api
Rachel Baker 260a88d009 REST API: Allow schema sanitization_callback to be set to null to bypass fallback sanitization functions.
The logic in WP_REST_Request->sanitize_params() added in [39091] did not account for `null` or `false` being the sanitization_callback preventing overriding `rest_parse_request_arg()`. This fixes that oversight, allowing the built in sanitization function to be bypassed. See #38593.

Props kkoppenhaver, rachelbaker, jnylen0.
Fixes #39042.


git-svn-id: https://develop.svn.wordpress.org/trunk@39563 602fd350-edb4-49c9-b593-d223f7449a82
2016-12-11 21:25:40 +00:00
..
endpoints Comments: Merge a similar string between comments.php, XML-RPC and the REST API comments controller. 2016-12-05 20:15:09 +00:00
fields REST API: Return a WP_Error if meta property is not an array. 2016-12-02 21:55:09 +00:00
class-wp-rest-request.php REST API: Allow schema sanitization_callback to be set to null to bypass fallback sanitization functions. 2016-12-11 21:25:40 +00:00
class-wp-rest-response.php DOCS: Replace HTTP links with HTTPS. 2016-06-10 04:49:09 +00:00
class-wp-rest-server.php Text Changes: Merge some duplicate strings with the same meaning in error messages, adjust some other strings for consistency and accuracy. 2016-11-17 15:52:18 +00:00