Expose post_status over xmlrpc. Fixes #4982 props josephscott

git-svn-id: https://develop.svn.wordpress.org/trunk@6358 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Peter Westwood 2007-12-05 07:42:42 +00:00
parent d3be09a763
commit d092f73d97
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']
);
}