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

WordPress Trac noreply at wordpress.org
Thu Feb 16 20:08:24 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  |     Focuses:
--------------------------------------+----------------------
Changes (by jnylen0):

 * owner:   => jnylen0
 * status:  new => closed
 * resolution:   => fixed


Comment:

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

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


More information about the wp-trac mailing list