Ensure that we return post IDs as strings to honour API defintions. See #15517

git-svn-id: https://develop.svn.wordpress.org/trunk@16508 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2010-11-20 15:50:56 +00:00
parent 306874cbb6
commit 358a4a3486
1 changed files with 4 additions and 4 deletions

View File

@ -1770,7 +1770,7 @@ class wp_xmlrpc_server extends IXR_Server {
'userid' => $post_data['post_author'],
'dateCreated' => new IXR_Date(mysql2date('Ymd\TH:i:s', $post_data['post_date'], false)),
'content' => $content,
'postid' => $post_data['ID']
'postid' => (string) $post_data['ID']
);
return $struct;
@ -1824,7 +1824,7 @@ class wp_xmlrpc_server extends IXR_Server {
'userid' => $entry['post_author'],
'dateCreated' => new IXR_Date($post_date),
'content' => $content,
'postid' => $entry['ID'],
'postid' => (string) $entry['ID'],
);
}
@ -2807,7 +2807,7 @@ class wp_xmlrpc_server extends IXR_Server {
$struct[] = array(
'dateCreated' => new IXR_Date($post_date),
'userid' => $entry['post_author'],
'postid' => $entry['ID'],
'postid' => (string) $entry['ID'],
'description' => $post['main'],
'title' => $entry['post_title'],
'link' => $link,
@ -3016,7 +3016,7 @@ class wp_xmlrpc_server extends IXR_Server {
$struct[] = array(
'dateCreated' => new IXR_Date($post_date),
'userid' => $entry['post_author'],
'postid' => $entry['ID'],
'postid' => (string) $entry['ID'],
'title' => $entry['post_title'],
'date_created_gmt' => new IXR_Date($post_date_gmt)
);