mirror of
https://github.com/WordPress/WordPress.git
synced 2024-09-28 07:07:38 +02:00
Move byuser to a seperate array entry to ease filtering by plugins. Fixes #9465 for 2.7 branch props hakre.
git-svn-id: http://svn.automattic.com/wordpress/branches/2.7@10876 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
d6926a1f65
commit
ab394b7665
@ -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 the comment author has an id (registered), then print the log in name
|
||||||
if ( $comment->user_id > 0 && $user = get_userdata($comment->user_id) ) {
|
if ( $comment->user_id > 0 && $user = get_userdata($comment->user_id) ) {
|
||||||
// For all registered users, 'byuser'
|
// 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
|
// For comment authors who are the author of the post
|
||||||
if ( $post = get_post($post_id) ) {
|
if ( $post = get_post($post_id) ) {
|
||||||
if ( $comment->user_id === $post->post_author )
|
if ( $comment->user_id === $post->post_author )
|
||||||
|
Loading…
Reference in New Issue
Block a user