WordPress.org

Make WordPress Core

Ticket #9465: 9465-classnames-fixed.patch

File 9465-classnames-fixed.patch, 733 bytes (added by hakre, 9 years ago)

byuser now in it's own array entry. fixes problems with getting un-normalized data.

  • wp-includes/comment-template.php

     
    292292        // If the comment author has an id (registered), then print the log in name
    293293        if ( $comment->user_id > 0 && $user = get_userdata($comment->user_id) ) {
    294294                // For all registered users, 'byuser'
    295                 $classes[] = 'byuser comment-author-' . $user->user_nicename;
     295                $classes[] = 'byuser';
     296                $classes[] = 'comment-author-' . $user->user_nicename;
    296297                // For comment authors who are the author of the post
    297298                if ( $post = get_post($post_id) ) {
    298299                        if ( $comment->user_id === $post->post_author )