From 3748a7731e4691d3970714bc13b6f4e4e2af274e Mon Sep 17 00:00:00 2001 From: Peter Westwood Date: Sun, 5 Apr 2009 17:38:19 +0000 Subject: [PATCH] Move byuser to a seperate array entry to ease filtering by plugins. Fixes #9465 for trunk props hakre. git-svn-id: https://develop.svn.wordpress.org/trunk@10875 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/comment-template.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index 3bb2fa0b3c..c295772c66 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -292,7 +292,8 @@ function get_comment_class( $class = '', $comment_id = null, $post_id = null ) { // If the comment author has an id (registered), then print the log in name if ( $comment->user_id > 0 && $user = get_userdata($comment->user_id) ) { // For all registered users, 'byuser' - $classes[] = 'byuser comment-author-' . $user->user_nicename; + $classes[] = 'byuser'; + $classes[] = 'comment-author-' . $user->user_nicename; // For comment authors who are the author of the post if ( $post = get_post($post_id) ) { if ( $comment->user_id === $post->post_author )