Changeset 7425 for trunk/wp-includes/comment.php
- Timestamp:
- 03/20/2008 08:32:18 PM (18 years ago)
- File:
-
- 1 edited
-
trunk/wp-includes/comment.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r7140 r7425 378 378 function check_comment_flood_db( $ip, $email, $date ) { 379 379 global $wpdb; 380 if ( current_user_can( 'manage_options' ) ) 381 return; // don't throttle admins 380 382 if ( $lasttime = $wpdb->get_var("SELECT comment_date_gmt FROM $wpdb->comments WHERE comment_author_IP = '$ip' OR comment_author_email = '$email' ORDER BY comment_date DESC LIMIT 1") ) { 381 383 $time_lastcomment = mysql2date('U', $lasttime);
Note: See TracChangeset
for help on using the changeset viewer.