#30965 closed enhancement (fixed)
get_comment_statuses() - does not contain the "Trash" comment status
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 2.7 |
Component: | Comments | Keywords: | has-patch needs-refresh |
Focuses: | Cc: |
Description
The get_comment_statuses()
function is expected to retrieve all of the available comment statuses, however it does not return the trash
status.
Attachments (1)
Change History (8)
#3
in reply to:
↑ 2
@
10 years ago
- Type changed from defect (bug) to enhancement
- Version changed from 4.1 to 2.7
I agree that trash
being omitted from the returned values of get_comment_statuses()
is misleading. get_comment_statuses()
was created, and is only internally used, to provide comment_statuses for the XMLRPC wp.editComment
endpoint. I believe the reason trash
was left off the returned values here is that they don't include handling for trashing, or editing and trashing comments.
If this ticket is going to move forward the logic in wp_xmlrpc_server::wp_editComment()
will also need a refresh, and test coverage.
Note: See
TracTickets for help on using
tickets.
Adding the
trash
comment status to the output ofget_comment_statuses()