mirror of
git://develop.git.wordpress.org/
synced 2025-02-28 02:22:25 +01:00
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:
parent
306874cbb6
commit
358a4a3486
@ -1770,7 +1770,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
'userid' => $post_data['post_author'],
|
'userid' => $post_data['post_author'],
|
||||||
'dateCreated' => new IXR_Date(mysql2date('Ymd\TH:i:s', $post_data['post_date'], false)),
|
'dateCreated' => new IXR_Date(mysql2date('Ymd\TH:i:s', $post_data['post_date'], false)),
|
||||||
'content' => $content,
|
'content' => $content,
|
||||||
'postid' => $post_data['ID']
|
'postid' => (string) $post_data['ID']
|
||||||
);
|
);
|
||||||
|
|
||||||
return $struct;
|
return $struct;
|
||||||
@ -1824,7 +1824,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
'userid' => $entry['post_author'],
|
'userid' => $entry['post_author'],
|
||||||
'dateCreated' => new IXR_Date($post_date),
|
'dateCreated' => new IXR_Date($post_date),
|
||||||
'content' => $content,
|
'content' => $content,
|
||||||
'postid' => $entry['ID'],
|
'postid' => (string) $entry['ID'],
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
@ -2807,7 +2807,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
$struct[] = array(
|
$struct[] = array(
|
||||||
'dateCreated' => new IXR_Date($post_date),
|
'dateCreated' => new IXR_Date($post_date),
|
||||||
'userid' => $entry['post_author'],
|
'userid' => $entry['post_author'],
|
||||||
'postid' => $entry['ID'],
|
'postid' => (string) $entry['ID'],
|
||||||
'description' => $post['main'],
|
'description' => $post['main'],
|
||||||
'title' => $entry['post_title'],
|
'title' => $entry['post_title'],
|
||||||
'link' => $link,
|
'link' => $link,
|
||||||
@ -3016,7 +3016,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
$struct[] = array(
|
$struct[] = array(
|
||||||
'dateCreated' => new IXR_Date($post_date),
|
'dateCreated' => new IXR_Date($post_date),
|
||||||
'userid' => $entry['post_author'],
|
'userid' => $entry['post_author'],
|
||||||
'postid' => $entry['ID'],
|
'postid' => (string) $entry['ID'],
|
||||||
'title' => $entry['post_title'],
|
'title' => $entry['post_title'],
|
||||||
'date_created_gmt' => new IXR_Date($post_date_gmt)
|
'date_created_gmt' => new IXR_Date($post_date_gmt)
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user