[wp-trac] [WordPress Trac] #39871: REST API: Revision author ID is returned as a string

WordPress Trac noreply at wordpress.org
Sun Feb 19 03:18:39 UTC 2017


#39871: REST API: Revision author ID is returned as a string
--------------------------------------------------+----------------------
 Reporter:  jnylen0                               |       Owner:  jnylen0
     Type:  defect (bug)                          |      Status:  closed
 Priority:  normal                                |   Milestone:  4.7.3
Component:  REST API                              |     Version:  4.7
 Severity:  normal                                |  Resolution:  fixed
 Keywords:  has-patch has-unit-tests fixed-major  |     Focuses:
--------------------------------------------------+----------------------
Changes (by rachelbaker):

 * status:  reopened => closed
 * resolution:   => fixed


Comment:

 In [changeset:"40078"]:
 {{{
 #!CommitTicketReference repository="" revision="40078"
 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.
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/39871#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list