[wp-trac] [WordPress Trac] #13210: Inconsistent types returned for postid by getPost and getRecentPosts
WordPress Trac
wp-trac at lists.automattic.com
Sun May 2 13:57:12 UTC 2010
#13210: Inconsistent types returned for postid by getPost and getRecentPosts
--------------------------+-------------------------------------------------
Reporter: AddieJanssen | Owner: josephscott
Type: defect (bug) | Status: new
Priority: normal | Milestone: Unassigned
Component: XML-RPC | Version: 2.9.2
Severity: normal | Keywords:
--------------------------+-------------------------------------------------
While trying to extract information from my website using xml-rpc.net
2.4.0, I found that '''metaWeblog.getPost''' and
'''metaWeblog.getRecentPosts''' do not return the same type for postid and
as a result xml-rpc.net throws exceptions.
In wordpress 2.9.2 '''metaWeblog.getPost''' returns postid as an
'''integer''' and '''metaWeblog.getRecentPosts''' returns postid as a
'''string'''.
When changing line 2751 of xmlrpc.php from:
{{{
'postid' => $entry['ID'],
}}}
into:
{{{
'postid' => (int) $entry['ID'],
}}}
Everything works fine again.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/13210>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list