mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 01:27:36 +01:00
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:
parent
80f85b53e3
commit
7c3f965571
@ -1395,7 +1395,8 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
'wp_password' => $postdata['post_password'],
|
'wp_password' => $postdata['post_password'],
|
||||||
'wp_author_id' => $author->ID,
|
'wp_author_id' => $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']
|
||||||
);
|
);
|
||||||
|
|
||||||
return $resp;
|
return $resp;
|
||||||
@ -1477,7 +1478,8 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||||||
'wp_password' => $entry['post_password'],
|
'wp_password' => $entry['post_password'],
|
||||||
'wp_author_id' => $author->ID,
|
'wp_author_id' => $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']
|
||||||
);
|
);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user