Expose post_status over xmlrpc. Fixes #4982 props josephscott

git-svn-id: http://svn.automattic.com/wordpress/trunk@6358 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
westi 2007-12-05 07:42:42 +00:00
parent 80f85b53e3
commit 7c3f965571
1 changed files with 4 additions and 2 deletions

View File

@ -1395,7 +1395,8 @@ class wp_xmlrpc_server extends IXR_Server {
'wp_password' => $postdata['post_password'],
'wp_author_id' => $author->ID,
'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']
);
return $resp;
@ -1477,7 +1478,8 @@ class wp_xmlrpc_server extends IXR_Server {
'wp_password' => $entry['post_password'],
'wp_author_id' => $author->ID,
'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']
);
}