wordpress-develop/tests/phpunit/tests/rest-api
Joe Hoyle 6d8e277152 REST API: Validate posts status enum
Currently we are using a different validate callback, so the `enum` is not interpretted. We just have to fallback to the result of `rest_validate_request_arg` in our custom wrapper function.

Fixes #38417.


git-svn-id: https://develop.svn.wordpress.org/trunk@38911 602fd350-edb4-49c9-b593-d223f7449a82
2016-10-25 17:12:18 +00:00
..
rest-attachments-controller.php REST API: Fix test failures. 2016-10-20 05:12:26 +00:00
rest-categories-controller.php REST API: Fix test failures. 2016-10-20 05:12:26 +00:00
rest-comments-controller.php REST API: Allow comments to be created setting the user_agent parameter. 2016-10-21 18:27:18 +00:00
rest-controller.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-pages-controller.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-post-meta-fields.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-post-statuses-controller.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-post-types-controller.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-posts-controller.php REST API: Validate posts status enum 2016-10-25 17:12:18 +00:00
rest-request-validation.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-request.php REST API: Enable sanitize_callback to return WP_Error. 2016-09-14 15:49:37 +00:00
rest-revisions-controller.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-server.php REST API: Reverse order of setting sanitization/validation, validating prior to sanitizing. 2016-07-02 23:02:45 +00:00
rest-settings-controller.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-tags-controller.php REST API: Fix test failures. 2016-10-20 05:12:26 +00:00
rest-taxonomies-controller.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-test-controller.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00
rest-users-controller.php REST API: Introduce the Content API endpoints. 2016-10-20 02:54:12 +00:00