WordPress/wp-includes/rest-api/endpoints
Rachel Baker 735fa34d42 REST API: On comment create, return an error if the post parameter does not relate to a valid WP_Post object.
Return a `WP_Error` object for attempts to create a comment without an empty or invalid `post` ID.

Props dd32, jnylen0, rachelbaker.
Fixes #38816.
Built from https://develop.svn.wordpress.org/trunk@39288


git-svn-id: http://core.svn.wordpress.org/trunk@39228 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2016-11-18 16:56:30 +00:00
..
class-wp-rest-attachments-controller.php REST API: Uppercase 'ID' in endpoint descriptions and error messages for consistency with other strings. 2016-11-16 12:18:33 +00:00
class-wp-rest-comments-controller.php REST API: On comment create, return an error if the post parameter does not relate to a valid WP_Post object. 2016-11-18 16:56:30 +00:00
class-wp-rest-controller.php
class-wp-rest-post-statuses-controller.php REST API: Unify permission error messages. 2016-11-15 22:23:30 +00:00
class-wp-rest-post-types-controller.php REST API: Unify permission error messages. 2016-11-15 22:23:30 +00:00
class-wp-rest-posts-controller.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
class-wp-rest-revisions-controller.php REST API: Uppercase 'ID' in endpoint descriptions and error messages for consistency with other strings. 2016-11-16 12:18:33 +00:00
class-wp-rest-settings-controller.php
class-wp-rest-taxonomies-controller.php REST API: Unify permission error messages. 2016-11-15 22:23:30 +00:00
class-wp-rest-terms-controller.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
class-wp-rest-users-controller.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