diff --git a/wp-admin/includes/template.php b/wp-admin/includes/template.php
index 346fe7eb80..bde13d03f4 100644
--- a/wp-admin/includes/template.php
+++ b/wp-admin/includes/template.php
@@ -767,6 +767,7 @@ function _wp_comment_row( $comment_id, $mode, $comment_status, $checkbox = true
$actions = array();
+ if ( current_user_can('edit_post', $comment->comment_post_ID) ) {
$actions['approve'] = " | ';
$actions['unapprove'] = " | ';
@@ -779,9 +780,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'] = " | ';
$actions['delete'] = "';
+ $actions = apply_filters( 'comment_row_actions', $actions, $comment );
foreach ( $actions as $action => $link )
echo "$link";
}