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.

Built from https://develop.svn.wordpress.org/trunk@34524


git-svn-id: http://core.svn.wordpress.org/trunk@34488 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2015-09-24 21:48:27 +00:00
parent 2c23ca7411
commit 59279c5f8b
2 changed files with 3 additions and 1 deletions

View File

@ -237,6 +237,8 @@ function get_comment_statuses() {
'approve' => _x('Approved', 'adjective'),
/* translators: comment status */
'spam' => _x('Spam', 'adjective'),
/* translators: comment status */
'trash' => _x('Trash', 'adjective'),
);
return $status;

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.4-alpha-34523';
$wp_version = '4.4-alpha-34524';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.