Cast author IDs to strings. Props yoavf. fixes #18869
git-svn-id: https://develop.svn.wordpress.org/trunk@19071 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
5ff9cbe0cb
commit
d8db24fafa
@ -527,7 +527,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
'wp_page_parent_id' => $page->post_parent,
|
||||
'wp_page_parent_title' => $parent_title,
|
||||
'wp_page_order' => $page->menu_order,
|
||||
'wp_author_id' => $author->ID,
|
||||
'wp_author_id' => (string) $author->ID,
|
||||
'wp_author_display_name' => $author->display_name,
|
||||
'date_created_gmt' => new IXR_Date($page_date_gmt),
|
||||
'custom_fields' => $this->get_custom_fields($page_id),
|
||||
@ -2850,7 +2850,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
'mt_keywords' => $tagnames,
|
||||
'wp_slug' => $postdata['post_name'],
|
||||
'wp_password' => $postdata['post_password'],
|
||||
'wp_author_id' => $author->ID,
|
||||
'wp_author_id' => (string) $author->ID,
|
||||
'wp_author_display_name' => $author->display_name,
|
||||
'date_created_gmt' => new IXR_Date($post_date_gmt),
|
||||
'post_status' => $postdata['post_status'],
|
||||
@ -2960,7 +2960,7 @@ class wp_xmlrpc_server extends IXR_Server {
|
||||
'mt_keywords' => $tagnames,
|
||||
'wp_slug' => $entry['post_name'],
|
||||
'wp_password' => $entry['post_password'],
|
||||
'wp_author_id' => $author->ID,
|
||||
'wp_author_id' => (string) $author->ID,
|
||||
'wp_author_display_name' => $author->display_name,
|
||||
'date_created_gmt' => new IXR_Date($post_date_gmt),
|
||||
'post_status' => $entry['post_status'],
|
||||
|
Loading…
Reference in New Issue
Block a user