Return post_parent, menu_order, guid, and post_mime_type from wp.getPost(). Props maxcutler. fixes #21308
git-svn-id: http://core.svn.wordpress.org/trunk@21526 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
24c16e3b05
commit
489924938f
|
@ -624,7 +624,11 @@ class wp_xmlrpc_server extends IXR_Server {
|
|||
'post_password' => $post['post_password'],
|
||||
'post_excerpt' => $post['post_excerpt'],
|
||||
'post_content' => $post['post_content'],
|
||||
'post_parent' => strval( $post['post_parent'] ),
|
||||
'post_mime_type' => $post['post_mime_type'],
|
||||
'link' => post_permalink( $post['ID'] ),
|
||||
'guid' => $post['guid'],
|
||||
'menu_order' => intval( $post['menu_order'] ),
|
||||
'comment_status' => $post['comment_status'],
|
||||
'ping_status' => $post['ping_status'],
|
||||
'sticky' => ( $post['post_type'] === 'post' && is_sticky( $post['ID'] ) ),
|
||||
|
|
Loading…
Reference in New Issue