WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/24/2015 09:47:51 PM (5 years ago)
Author:
wonderboymusic
Message:

Comments: In get_comment_statuses(), also return trash.
XML-RPC: In wp_xmlrpc_server::wp_editComment(), allow comments to be trashed.

Introduce unit tests for wp_editComment in xmlrpc/* #NeverForget

Props tyxla, wonderboymusic.
Fixes #30965.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/comment-functions.php

    r34522 r34524  
    238238        /* translators: comment status */
    239239        'spam'      => _x('Spam', 'adjective'),
     240        /* translators: comment status */
     241        'trash'     => _x('Trash', 'adjective'),
    240242    );
    241243
Note: See TracChangeset for help on using the changeset viewer.