wordpress-develop/src/wp-includes/rest-api
Rachel Baker ff38fc46e4 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.

git-svn-id: https://develop.svn.wordpress.org/trunk@39288 602fd350-edb4-49c9-b593-d223f7449a82
2016-11-18 16:55:03 +00:00
..
endpoints 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:55:03 +00:00
fields REST API: Unify permission error messages. 2016-11-15 20:36:27 +00:00
class-wp-rest-request.php REST API: Only provide JSON error code on PHP 5.3+. 2016-11-03 04:57:00 +00:00
class-wp-rest-response.php DOCS: Replace HTTP links with HTTPS. 2016-06-10 04:49:09 +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:52:18 +00:00