WordPress.org

Make WordPress Core

Changeset 7425


Ignore:
Timestamp:
03/20/08 20:32:18 (7 years ago)
Author:
markjaquith
Message:

don't time-throttle comments from Administrators

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/comment.php

    r7140 r7425  
    378378function check_comment_flood_db( $ip, $email, $date ) { 
    379379    global $wpdb; 
     380    if ( current_user_can( 'manage_options' ) ) 
     381        return; // don't throttle admins 
    380382    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") ) { 
    381383        $time_lastcomment = mysql2date('U', $lasttime); 
Note: See TracChangeset for help on using the changeset viewer.