WordPress.org

Make WordPress Core

Ticket #8446: 8446_comment.patch

File 8446_comment.patch, 637 bytes (added by mrmist, 13 years ago)

comment user_id

  • wp-includes/comment-template.php

     
    294294        if ( $comment->user_id > 0 && $user = get_userdata($comment->user_id) ) {
    295295                // For all registered users, 'byuser'
    296296                $classes[] = 'byuser';
    297                 $classes[] = 'comment-author-' . $user->user_id;
     297                $classes[] = 'comment-author-' . $comment->user_id;
    298298                // For comment authors who are the author of the post
    299299                if ( $post = get_post($post_id) ) {
    300300                        if ( $comment->user_id === $post->post_author )