From cf76b3d7c1c714a607f065b2d916da9c5eef1967 Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Fri, 14 Mar 2008 08:30:45 +0000 Subject: [PATCH] Change order of links to match buttons above. git-svn-id: https://develop.svn.wordpress.org/trunk@7286 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-admin/includes/template.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php index 92e4e9e8c7..04f92cda9f 100644 --- a/wp-admin/includes/template.php +++ b/wp-admin/includes/template.php @@ -647,11 +647,9 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true comment_post_ID) ) { - $actions['spam'] = "" . __( 'Spam' ) . ' | '; - $actions['delete'] = "" . __('Delete') . ' | '; - $actions['approve'] = "" . __( 'Approve' ) . ''; - $actions['unapprove'] = "" . __( 'Unapprove' ) . ''; + + $actions['approve'] = "" . __( 'Approve' ) . ' | '; + $actions['unapprove'] = "" . __( 'Unapprove' ) . ' | '; // we're looking at list of only approved or only unapproved comments if ( 'moderated' == $comment_status ) { @@ -662,6 +660,9 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true unset($actions['approve']); } + if ( current_user_can('edit_post', $comment->comment_post_ID) ) { + $actions['spam'] = "" . __( 'Spam' ) . ' | '; + $actions['delete'] = "" . __('Delete') . ''; foreach ( $actions as $action => $link ) echo "$link"; }