[wp-trac] [WordPress Trac] #20977: Add Dynamic Comment Statuses

WordPress Trac noreply at wordpress.org
Wed Jun 3 15:01:52 UTC 2015


#20977: Add Dynamic Comment Statuses
--------------------------------------+------------------------------
 Reporter:  supercleanse              |       Owner:
     Type:  enhancement               |      Status:  new
 Priority:  normal                    |   Milestone:  Awaiting Review
Component:  Comments                  |     Version:  3.4
 Severity:  normal                    |  Resolution:
 Keywords:  needs-patch dev-feedback  |     Focuses:
--------------------------------------+------------------------------

Comment (by rachelbaker):

 Replying to [comment:3 Oxymoron]:
 All your points here are correct.  I made a similar note in #30965, which
 wouldn't be solved by the suggested approach of allowing the result to be
 filtered.

 1. Reworking `get_comment_statuses()` in a backwards compatible way to be
 *useful* outside the XMLRPC endpoints.
 2. Create a new function that everyone else (including the WP REST API and
 XMLRPC API can use) and eventually deprecate `get_comment_statuses`

 Option 1 would be the ideal, if possible.

 +1 For the goal of removing the hard-coded comment statuses in favor of a
 single function that returns all core comment statuses (including `trash`)
 and is filterable (for the addition of custom statuses).

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


More information about the wp-trac mailing list