From 5e0e0bf9a986635eb989407cfcda27236cf174ff Mon Sep 17 00:00:00 2001 From: Donncha O Caoimh Date: Fri, 17 Sep 2004 10:26:34 +0000 Subject: [PATCH] Check for moderation_notify flag before notifying moderator that about held comments. git-svn-id: https://develop.svn.wordpress.org/trunk@1678 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/functions.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/wp-includes/functions.php b/wp-includes/functions.php index 49033e263f..52e6378924 100644 --- a/wp-includes/functions.php +++ b/wp-includes/functions.php @@ -927,6 +927,9 @@ function wp_notify_postauthor($comment_id, $comment_type='comment') { function wp_notify_moderator($comment_id) { global $wpdb; global $querystring_start, $querystring_equal, $querystring_separator; + + if( get_settings( "moderation_notify" ) == 0 ) + return true; $comment = $wpdb->get_row("SELECT * FROM $wpdb->comments WHERE comment_ID='$comment_id' LIMIT 1"); $post = $wpdb->get_row("SELECT * FROM $wpdb->posts WHERE ID='$comment->comment_post_ID' LIMIT 1"); @@ -1612,4 +1615,4 @@ function the_post() { start_wp(true); } -?> \ No newline at end of file +?>