From 64c329968f272d32896996159b8f182c5da2b268 Mon Sep 17 00:00:00 2001 From: Andrew Ozz Date: Tue, 1 Dec 2009 22:05:03 +0000 Subject: [PATCH] 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 --- wp-admin/includes/dashboard.php | 6 +++--- wp-admin/includes/template.php | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/wp-admin/includes/dashboard.php b/wp-admin/includes/dashboard.php index 55b2227c60..f69fdd3a53 100644 --- a/wp-admin/includes/dashboard.php +++ b/wp-admin/includes/dashboard.php @@ -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" ) ); diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index f5fa2d0706..918dcd2d0a 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -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