diff --git a/core/modules/comment/comment.module b/core/modules/comment/comment.module
index 7ad14e8..5d7cbc6 100644
--- a/core/modules/comment/comment.module
+++ b/core/modules/comment/comment.module
@@ -2143,19 +2143,19 @@ function template_preprocess_comment(&$variables) {
     $variables['classes_array'][] = 'comment-by-anonymous';
   }
   else {
-    // Published class is not needed. It is either 'comment-preview' or 'comment-unpublished'.
-    if ($variables['status'] != 'comment-published') {
-      $variables['classes_array'][] = $variables['status'];
-    }
     if ($comment->uid === $variables['node']->uid) {
       $variables['classes_array'][] = 'comment-by-node-author';
     }
     if ($comment->uid === $variables['user']->uid) {
       $variables['classes_array'][] = 'comment-by-viewer';
     }
-    if ($variables['new']) {
-      $variables['classes_array'][] = 'comment-new';
-    }
+  }
+  if ($variables['new']) {
+    $variables['classes_array'][] = 'comment-new';
+  }
+  // Published class is not needed. It is either 'comment-preview' or 'comment-unpublished'.
+  if ($variables['status'] != 'comment-published') {
+    $variables['classes_array'][] = $variables['status'];
   }
 }
 
