WordPress.org

Make WordPress Core


Ignore:
Timestamp:
02/19/2017 03:18:38 AM (5 years ago)
Author:
rachelbaker
Message:

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.

Location:
branches/4.7
Files:
2 edited

Legend:

Unmodified
Added
Removed
Note: See TracChangeset for help on using the changeset viewer.