Don't add a class for comment authors who are members of the current site.

Reverts [32245] and [31518]. We'll keep the whitespace and comment clarification, though.

see #24054.

Built from https://develop.svn.wordpress.org/trunk@32259


git-svn-id: http://core.svn.wordpress.org/trunk@32230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Helen Hou-Sandí 2015-04-21 23:36:25 +00:00
parent 60706015e1
commit 3fdd3ba9b5
2 changed files with 1 additions and 7 deletions

View File

@ -424,12 +424,6 @@ function get_comment_class( $class = '', $comment_id = null, $post_id = null ) {
if ( $comment->user_id > 0 && $user = get_userdata( $comment->user_id ) ) {
$classes[] = 'byuser';
$classes[] = 'comment-author-' . sanitize_html_class( $user->user_nicename, $comment->user_id );
// If a comment author is also a member of the site (multisite).
if ( is_user_member_of_blog( $comment->user_id ) ) {
$classes[] = 'bysiteuser';
}
// For comment authors who are the author of the post
if ( $post = get_post($post_id) ) {
if ( $comment->user_id === $post->post_author ) {

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-RC3-32258';
$wp_version = '4.2-RC3-32259';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.