Check for moderation_notify flag before notifying moderator that about
held comments. git-svn-id: http://svn.automattic.com/wordpress/trunk@1678 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
5fd7490c9f
commit
331257f4fe
|
@ -927,6 +927,9 @@ function wp_notify_postauthor($comment_id, $comment_type='comment') {
|
||||||
function wp_notify_moderator($comment_id) {
|
function wp_notify_moderator($comment_id) {
|
||||||
global $wpdb;
|
global $wpdb;
|
||||||
global $querystring_start, $querystring_equal, $querystring_separator;
|
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");
|
$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");
|
$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);
|
start_wp(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in New Issue