wordpress-develop/tests/phpunit/tests/rest-api
Rachel Baker c962a98980 REST API: Return an error when the length of a comment field is too long.
Introduces `wp_check_comment_data_max_lengths()` which allows both the REST API comments endpoints and `wp_handle_comment_submission()` to check the length of the comment content, author name, author url, and author email fields against their respective database columns.

Props rachelbaker, mangeshp, salcode, pento.
Fixes #38477.

git-svn-id: https://develop.svn.wordpress.org/trunk@39101 602fd350-edb4-49c9-b593-d223f7449a82
2016-11-03 01:11:30 +00:00
..
rest-attachments-controller.php REST API: Delete temporary files during teardown of WP_Test_REST_Attachments_Controller. 2016-10-30 23:31:06 +00:00
rest-categories-controller.php Share fixtures in REST API endpoint tests. 2016-10-27 02:56:28 +00:00
rest-comments-controller.php REST API: Return an error when the length of a comment field is too long. 2016-11-03 01:11:30 +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: Support password on non-post post types. 2016-10-31 03:52:08 +00:00
rest-post-meta-fields.php Share fixtures in REST API endpoint tests. 2016-10-27 02:56:28 +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: Include taxonomies as an attribute of post types. 2016-11-02 21:50:08 +00:00
rest-posts-controller.php REST API: Allow querying for multiple slug values. 2016-11-02 07:13:24 +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: Change method of merging parameters. 2016-11-02 05:52:12 +00:00
rest-revisions-controller.php Share fixtures in REST API endpoint tests. 2016-10-27 02:56:28 +00:00
rest-schema-sanitization.php REST API: Sanitize arrays being sent as CSVs. 2016-10-31 17:07:14 +00:00
rest-schema-validation.php REST API: Allow parameters defined as array to be sent as CSVs. 2016-10-31 05:44:56 +00:00
rest-server.php REST API: Deprecate the rest_enabled filter. 2016-10-26 06:27:04 +00:00
rest-settings-controller.php REST API: Add support for "integer" type for meta and options 2016-10-31 16:06:54 +00:00
rest-tags-controller.php REST API: Use wp_get_object_terms() when fetching terms for a post object. 2016-10-27 01:41:08 +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: Add en_US to the locales enum. 2016-11-02 21:20:12 +00:00