[wp-trac] [WordPress Trac] #30965: get_comment_statuses() - does not contain the "Trash" comment status

WordPress Trac noreply at wordpress.org
Sat Jan 17 16:43:04 UTC 2015


#30965: get_comment_statuses() - does not contain the "Trash" comment status
-------------------------+------------------------------
 Reporter:  tyxla        |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Comments     |     Version:  2.7
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |     Focuses:
-------------------------+------------------------------
Changes (by rachelbaker):

 * version:  4.1 => 2.7
 * type:  defect (bug) => enhancement


Comment:

 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.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30965#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list