WordPress/wp-includes/rest-api
James Nylen cb7a9a731d REST API: Cast revision author ID to int.
The `post_author` field is a string internally, but we need to cast it to an integer in the REST API.  This was already done for posts, but not for revisions.  The field is already declared as an integer in both controllers.

Fixes #39871.

Built from https://develop.svn.wordpress.org/trunk@40063


git-svn-id: http://core.svn.wordpress.org/trunk@40000 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-02-16 20:09:45 +00:00
..
endpoints REST API: Cast revision author ID to int. 2017-02-16 20:09:45 +00:00
fields REST API: Return a `WP_Error` if `meta` property is not an array. 2016-12-02 21:56:42 +00:00
class-wp-rest-request.php REST API: Do not error on empty JSON body 2016-12-13 03:34:41 +00:00
class-wp-rest-response.php DOCS: Replace HTTP links with HTTPS. 2016-06-10 04:50:33 +00:00
class-wp-rest-server.php REST API: After [38947], improve the wording of the message to clarify that `rest_authentication_errors` is a filter. 2017-02-01 21:32:47 +00:00