Opened 16 years ago
Closed 16 years ago
#4982 closed defect (bug) (fixed)
XMLRPC should expose draft status of entries
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 2.5 | Priority: | normal |
Severity: | normal | Version: | 2.3 |
Component: | XML-RPC | Keywords: | has-patch |
Focuses: | Cc: |
Description
Although getRecentPosts returns items whose publish status is "draft," there is no indication in the XML attributes of the status of the item. This leaves remote clients in a tricky position when it comes to relating the status of the post to the user.
I propose a new boolean attribute "wp_draft" be added to these posts, to definitely convey whether the post is a draft or not.
Attachments (1)
Change History (12)
#4
@
16 years ago
See also:
http://trac.wordpress.org/browser/trunk/wp-admin/includes/schema.php?rev=6075#L103
Not all of those are applicable to posts though.
#5
@
16 years ago
Most of those are legacy. Only inherit is still used among those in the schema but not in my list, and it really isn't a public status.
#7
@
16 years ago
In -trunk I see the following potential post status values for a post:
- draft
- private
- pending
- publish
- future
For pages there are the following potential values:
- draft
- private
- publish
There were all the possible states I was able to put posts and pages in using the regular web admin. Does this seem like a reasonable list?
Would it be helpful to know the other possible states? Ryan mentioned 5: http://boren.nu/archives/2007/09/05/post-status-transitions/