From 7c3f965571fec23b1436d54b5a6d641895216f0e Mon Sep 17 00:00:00 2001 From: westi Date: Wed, 5 Dec 2007 07:42:42 +0000 Subject: [PATCH] Expose post_status over xmlrpc. Fixes #4982 props josephscott git-svn-id: http://svn.automattic.com/wordpress/trunk@6358 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- xmlrpc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xmlrpc.php b/xmlrpc.php index 935c0043fa..99e72052a7 100644 --- a/xmlrpc.php +++ b/xmlrpc.php @@ -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'] ); }