mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-22 17:18:32 +01:00
Ensure that we return post IDs as strings to honour API defintions. See #15517
git-svn-id: http://svn.automattic.com/wordpress/trunk@16508 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
2410a3bd8e
commit
1a0818d477
@ -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)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user