diff --git wp-includes/comment.php wp-includes/comment.php
index c0c1756..4caab68 100644
|
|
function wp_allow_comment($commentdata) { |
662 | 662 | */ |
663 | 663 | function check_comment_flood_db( $ip, $email, $date ) { |
664 | 664 | global $wpdb; |
665 | | if ( current_user_can( 'manage_options' ) ) |
| 665 | if ( current_user_can( 'manage_options' ) || current_user_can( 'moderate_comments' ) ) |
666 | 666 | return; // don't throttle admins |
667 | 667 | $hour_ago = gmdate( 'Y-m-d H:i:s', time() - 3600 ); |
668 | 668 | if ( $lasttime = $wpdb->get_var( $wpdb->prepare( "SELECT `comment_date_gmt` FROM `$wpdb->comments` WHERE `comment_date_gmt` >= %s AND ( `comment_author_IP` = %s OR `comment_author_email` = %s ) ORDER BY `comment_date_gmt` DESC LIMIT 1", $hour_ago, $ip, $email ) ) ) { |