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

git-svn-id: https://develop.svn.wordpress.org/trunk@12311 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Andrew Ozz 2009-12-01 22:05:03 +00:00
parent 0042fa7b7c
commit 64c329968f
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