WordPress/wp-includes/rest-api/endpoints
Rachel Baker 94ab2f9b16 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.
Built from https://develop.svn.wordpress.org/trunk@39101


git-svn-id: http://core.svn.wordpress.org/trunk@39043 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-03 01:12:31 +00:00
..
class-wp-rest-attachments-controller.php REST API: Support password on non-post post types. 2016-10-31 03:53:32 +00:00
class-wp-rest-comments-controller.php REST API: Return an error when the length of a comment field is too long. 2016-11-03 01:12:31 +00:00
class-wp-rest-controller.php REST API: Add support for arrays in schema validation and sanitization. 2016-10-31 01:48:41 +00:00
class-wp-rest-post-statuses-controller.php Docs: Add much more complete and syntactically correct documentation throughout the WP_REST_Post_Statuses_Controller class. 2016-10-30 16:44:38 +00:00
class-wp-rest-post-types-controller.php REST API: Include taxonomies as an attribute of post types. 2016-11-02 21:51:30 +00:00
class-wp-rest-posts-controller.php REST API: Allow querying for multiple slug values. 2016-11-02 07:14:29 +00:00
class-wp-rest-revisions-controller.php Docs: Add much more complete and syntactically correct documentation throughout the WP_REST_Revisions_Controller class. 2016-10-30 17:50:29 +00:00
class-wp-rest-settings-controller.php REST API: Add support for "integer" type for meta and options 2016-10-31 16:07:31 +00:00
class-wp-rest-taxonomies-controller.php Docs: Add much more complete and syntactically correct documentation throughout the WP_REST_Taxonomies_Controller class. 2016-10-30 18:07:33 +00:00
class-wp-rest-terms-controller.php Docs: Add much more complete and syntactically correct documentation throughout the WP_REST_Terms_Controller class. 2016-10-30 18:21:30 +00:00
class-wp-rest-users-controller.php REST API: Add en_US to the locales enum. 2016-11-02 21:21:32 +00:00