From 75ec19a8606bbad916ef7d99debd70f61565463f Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 13 May 2009 19:04:26 +0000 Subject: [PATCH] Notice fix. Props mrmist. fixes #8446 git-svn-id: http://svn.automattic.com/wordpress/trunk@11316 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/comment-template.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/comment-template.php b/wp-includes/comment-template.php index efcd09947..e67032c54 100644 --- a/wp-includes/comment-template.php +++ b/wp-includes/comment-template.php @@ -294,7 +294,7 @@ function get_comment_class( $class = '', $comment_id = null, $post_id = null ) { if ( $comment->user_id > 0 && $user = get_userdata($comment->user_id) ) { // For all registered users, 'byuser' $classes[] = 'byuser'; - $classes[] = 'comment-author-' . $user->user_id; + $classes[] = 'comment-author-' . $comment->user_id; // For comment authors who are the author of the post if ( $post = get_post($post_id) ) { if ( $comment->user_id === $post->post_author )