Opened 12 years ago
Closed 12 years ago
#21308 closed defect (bug) (fixed)
wp.getPost(s) missing fields
Reported by: | maxcutler | Owned by: | ryan |
---|---|---|---|
Milestone: | 3.4.2 | Priority: | normal |
Severity: | normal | Version: | 3.4 |
Component: | XML-RPC | Keywords: | has-patch |
Focuses: | Cc: |
Description
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.
Attachments (1)
Change History (6)
Note: See
TracTickets for help on using
tickets.
Added patch, and committed unit test in [UT908].