WordPress/wp-includes/rest-api
Rachel Baker bd0a38d439 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.

Merges [39563] to the 4.7  branch.

Props kkoppenhaver, rachelbaker, jnylen0.
Fixes #39042.

Built from https://develop.svn.wordpress.org/branches/4.7@39642


git-svn-id: http://core.svn.wordpress.org/branches/4.7@39582 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-12-27 17:49:36 +00:00
..
endpoints REST API: Improve the rest_*_collection_params filter docs and fix the terms filter. 2016-12-21 05:34:34 +00:00
fields REST API: Return a WP_Error if meta property is not an array. 2016-12-02 22:05:35 +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-27 17:49:36 +00:00
class-wp-rest-response.php DOCS: Replace HTTP links with HTTPS. 2016-06-10 04:50:33 +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:53:33 +00:00