Swap Spam and Trash in comment action links, fixes #11258

git-svn-id: http://svn.automattic.com/wordpress/trunk@12311 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
azaozz 2009-12-01 22:05:03 +00:00
parent 8b5ba8c556
commit 9b3f5be113
2 changed files with 6 additions and 6 deletions

View File

@ -531,13 +531,13 @@ function _wp_dashboard_recent_comments_row( &$comment, $show_date = true ) {
$actions_string = '';
if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
// preorder it: Approve | Reply | Edit | Trash | Spam
// preorder it: Approve | Reply | Edit | Spam | Trash
$actions = array(
'approve' => '', 'unapprove' => '',
'reply' => '',
'edit' => '',
'trash' => '', 'delete' => '',
'spam' => ''
'spam' => '',
'trash' => '', 'delete' => ''
);
$del_nonce = esc_html( '_wpnonce=' . wp_create_nonce( "delete-comment_$comment->comment_ID" ) );

View File

@ -2160,14 +2160,14 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true,
}
if ( $user_can ) {
// preorder it: Approve | Reply | Quick Edit | Edit | Trash | Spam
// preorder it: Approve | Reply | Quick Edit | Edit | Spam | Trash
$actions = array(
'approve' => '', 'unapprove' => '',
'reply' => '',
'quickedit' => '',
'edit' => '',
'trash' => '', 'untrash' => '', 'delete' => '',
'spam' => '', 'unspam' => ''
'spam' => '', 'unspam' => '',
'trash' => '', 'untrash' => '', 'delete' => ''
);
if ( $comment_status && 'all' != $comment_status ) { // not looking at all comments