mirror of
https://github.com/WordPress/WordPress.git
synced 2024-12-23 17:48:01 +01:00
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:
parent
8b5ba8c556
commit
9b3f5be113
@ -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" ) );
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user