summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.txt1
-rw-r--r--template.php4
2 files changed, 5 insertions, 0 deletions
diff --git a/CHANGELOG.txt b/CHANGELOG.txt
index 3c7f58f..f9e19bc 100644
--- a/CHANGELOG.txt
+++ b/CHANGELOG.txt
@@ -1,5 +1,6 @@
Zen 7.x-3.x-dev, xxxx-xx-xx (development release)
---------------------------
+- #1110650: Anonymous comment class is broken in core
- #1079010: The secondary links heading, "Secondary menu", is wrong
- #1078994: Move secondary menu links from footer to header
- #1072302: Use element-focusable class for skip link accessibility
diff --git a/template.php b/template.php
index eed905b..cff0709 100644
--- a/template.php
+++ b/template.php
@@ -280,6 +280,10 @@ function zen_preprocess_comment(&$variables, $hook) {
$variables['title'] = '';
}
+ // Anonymous class is broken in core. See #1110650
+ if ($variables['comment']->uid == 0) {
+ $variables['classes_array'][] = 'comment-by-anonymous';
+ }
// Zebra striping.
if ($variables['id'] == 1) {
$variables['classes_array'][] = 'first';