[wp-trac] [WordPress Trac] #18869: XML-RPC returns wp_author_id as int instead of string

WordPress Trac wp-trac at lists.automattic.com
Thu Oct 6 09:03:21 UTC 2011


#18869: XML-RPC returns wp_author_id as int instead of string
--------------------------+-----------------------
 Reporter:  yoavf         |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  3.3
Component:  XML-RPC       |    Version:
 Severity:  normal        |   Keywords:  has-patch
--------------------------+-----------------------
 Following r18597, we now cast the user id to int when initializing the
 WP_User data.
 That value is directly used by the XML-RPC methods to return
 'wp_author_id', which is expected to be string.

 Patch attached fixes three occurrences -there might be more, and we need
 to review all the xmlrpc apis that return user ids.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/18869>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list