mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-04 18:01:42 +01:00
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:
parent
60706015e1
commit
3fdd3ba9b5
@ -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 ) ) {
|
if ( $comment->user_id > 0 && $user = get_userdata( $comment->user_id ) ) {
|
||||||
$classes[] = 'byuser';
|
$classes[] = 'byuser';
|
||||||
$classes[] = 'comment-author-' . sanitize_html_class( $user->user_nicename, $comment->user_id );
|
$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
|
// 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 ) {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
*
|
*
|
||||||
* @global string $wp_version
|
* @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.
|
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||||
|
Loading…
Reference in New Issue
Block a user