mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-07-04 01:00:04 +00:00
Fix duplicate comment notifications. Props MtDewVirus. fixes #6892 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@8004 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -193,10 +193,6 @@ case 'approvecomment' :
|
||||
|
||||
wp_set_comment_status( $comment->comment_ID, 'approve' );
|
||||
|
||||
if ( true == get_option('comments_notify') )
|
||||
wp_notify_postauthor( $comment->comment_ID );
|
||||
|
||||
|
||||
if ( '' != wp_get_referer() && false == $noredir )
|
||||
wp_redirect( wp_get_referer() );
|
||||
else
|
||||
@@ -229,4 +225,4 @@ default:
|
||||
|
||||
include('admin-footer.php');
|
||||
|
||||
?>
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user