summaryrefslogtreecommitdiffstats
path: root/wp-includes/comment.php
diff options
context:
space:
mode:
Diffstat (limited to 'wp-includes/comment.php')
-rw-r--r--wp-includes/comment.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/wp-includes/comment.php b/wp-includes/comment.php
index e77f483..5d991e2 100644
--- a/wp-includes/comment.php
+++ b/wp-includes/comment.php
@@ -199,7 +199,7 @@ function wp_allow_comment($commentdata) {
}
// The author and the admins get respect.
- if ( $userdata && ( $user_id == $post_author || $user->has_cap('level_9') ) ) {
+ if ( $userdata && is_site_admin( $userdata->user_login ) == false && ( $user_id == $post_author || $user->has_cap('level_9' ) ) ) {
$approved = 1;
}