xmlrpc "getrecentposts" inconsistent with "getpost"
|Reported by:||kevbo||Owned by:|
Description (last modified by SergeyBiryukov)
In /wp-includes/class-wp-xmlrpc-server.php the return array for mw_getPost sets the postid as an int. For mw_getRecentPosts postid is cast as a string. (lines 1827 & 2810)
Rev  first cast the int as string in response to ticket #15517. The reference given was an old MSDN article. However, the Blogger API actually says the post ID should be numerical, not a string.
(See Blogger API Post definition here: https://developers.google.com/blogger/docs/2.0/json/reference/posts#resource)
Suggestion: Remove the cast to string for postid.
(Clients which use XML-RPC calls likely (and logically) expect that the struct of the post should be the same. For example, the .NET library JoeBlogs expects that mw_getPost return a certain struct whereas mw_getRecentPosts would return an array of structs.)