mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-05 02:10:45 +01:00
Cast author IDs to strings. Props yoavf. fixes #18869
git-svn-id: http://svn.automattic.com/wordpress/trunk@19071 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
c23e0cc0bc
commit
d8892db612
@ -527,7 +527,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
'wp_page_parent_id' => $page->post_parent,
|
'wp_page_parent_id' => $page->post_parent,
|
||||||
'wp_page_parent_title' => $parent_title,
|
'wp_page_parent_title' => $parent_title,
|
||||||
'wp_page_order' => $page->menu_order,
|
'wp_page_order' => $page->menu_order,
|
||||||
'wp_author_id' => $author->ID,
|
'wp_author_id' => (string) $author->ID,
|
||||||
'wp_author_display_name' => $author->display_name,
|
'wp_author_display_name' => $author->display_name,
|
||||||
'date_created_gmt' => new IXR_Date($page_date_gmt),
|
'date_created_gmt' => new IXR_Date($page_date_gmt),
|
||||||
'custom_fields' => $this->get_custom_fields($page_id),
|
'custom_fields' => $this->get_custom_fields($page_id),
|
||||||
@ -2850,7 +2850,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
'mt_keywords' => $tagnames,
|
'mt_keywords' => $tagnames,
|
||||||
'wp_slug' => $postdata['post_name'],
|
'wp_slug' => $postdata['post_name'],
|
||||||
'wp_password' => $postdata['post_password'],
|
'wp_password' => $postdata['post_password'],
|
||||||
'wp_author_id' => $author->ID,
|
'wp_author_id' => (string) $author->ID,
|
||||||
'wp_author_display_name' => $author->display_name,
|
'wp_author_display_name' => $author->display_name,
|
||||||
'date_created_gmt' => new IXR_Date($post_date_gmt),
|
'date_created_gmt' => new IXR_Date($post_date_gmt),
|
||||||
'post_status' => $postdata['post_status'],
|
'post_status' => $postdata['post_status'],
|
||||||
@ -2960,7 +2960,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
'mt_keywords' => $tagnames,
|
'mt_keywords' => $tagnames,
|
||||||
'wp_slug' => $entry['post_name'],
|
'wp_slug' => $entry['post_name'],
|
||||||
'wp_password' => $entry['post_password'],
|
'wp_password' => $entry['post_password'],
|
||||||
'wp_author_id' => $author->ID,
|
'wp_author_id' => (string) $author->ID,
|
||||||
'wp_author_display_name' => $author->display_name,
|
'wp_author_display_name' => $author->display_name,
|
||||||
'date_created_gmt' => new IXR_Date($post_date_gmt),
|
'date_created_gmt' => new IXR_Date($post_date_gmt),
|
||||||
'post_status' => $entry['post_status'],
|
'post_status' => $entry['post_status'],
|
||||||
|
Loading…
Reference in New Issue
Block a user