WordPress/wp-includes/rest-api
Rachel Baker a51de29064 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.

Props jnylen0.
Merges [40063] to the 4.7 branch.
Fixes #39871.

Built from https://develop.svn.wordpress.org/branches/4.7@40078


git-svn-id: http://core.svn.wordpress.org/branches/4.7@40015 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-02-19 03:19:37 +00:00
..
endpoints REST API: Cast revision author ID to int. 2017-02-19 03:19:37 +00:00
fields REST API: Return a `WP_Error` if `meta` property is not an array. 2016-12-02 22:05:35 +00:00
class-wp-rest-request.php REST API: Allow schema sanitization_callback to be set to null to bypass fallback sanitization functions. 2016-12-27 17:49:36 +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 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