Broken comment_class() is adding comment id to beginning of returned string
-
I’m trying to using the comment_class function for my comments so I can style them properly (different color for post author’s comments, alternating colors, etc). However, it looks like the function is appending the comment ID before “class=…” such that often the returned string looks like this:
5class="comment byuser comment-author-admin bypostauthor even thread-even depth-1"
Note the “5” right before “class”. 5 is the id of the comment that’s currently being used, but it could be the ID of any comment.
Anyone has an idea of what’s up? I’ve looked into comment-template.php but I don’t see anything wrong. By the way, this only occurs if I specifiy a comment id in the function’s args.
- The topic ‘Broken comment_class() is adding comment id to beginning of returned string’ is closed to new replies.