[wp-trac] [WordPress Trac] #21308: wp.getPost(s) missing fields

WordPress Trac wp-trac at lists.automattic.com
Wed Jul 18 22:33:21 UTC 2012


#21308: wp.getPost(s) missing fields
--------------------------+-----------------------------
 Reporter:  maxcutler     |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  XML-RPC       |    Version:  3.4
 Severity:  normal        |   Keywords:
--------------------------+-----------------------------
 The `wp.getPost` and `wp.getPosts` XML-RPC methods introduced in 3.4 are
 missing some fields from the posts table:

 * post_parent
 * menu_order
 * guid
 * post_mime_type

 The first two are important when dealing with pages, and the last one is
 important for dealing with attachments.

 `wp.newPost` and `wp.editPost` properly accept these fields because they
 delegate to `wp_insert_post` which handles them correctly. For symmetry
 and completeness, `wp.getPost` and `wp.getPosts` should return the values.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21308>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list