mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-04-04 12:44:31 +00:00
Variable Cleanup, Unused variables, Typo'd variables, unused code blocks. Fixes #12299
git-svn-id: https://develop.svn.wordpress.org/trunk@13242 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -969,7 +969,6 @@ function wp_notify_postauthor($comment_id, $comment_type='') {
|
||||
$comment = get_comment($comment_id);
|
||||
$post = get_post($comment->comment_post_ID);
|
||||
$user = get_userdata( $post->post_author );
|
||||
$current_user = wp_get_current_user();
|
||||
|
||||
if ( $comment->user_id == $post->post_author ) return false; // The author moderated a comment on his own post
|
||||
|
||||
|
||||
Reference in New Issue
Block a user