Ticket #12188: comment.php.diff
File comment.php.diff, 1.4 KB (added by , 15 years ago) |
---|
-
wp-includes/comment.php
547 547 $dupe .= "OR comment_author_email = '$comment_author_email' "; 548 548 $dupe .= ") AND comment_content = '$comment_content' LIMIT 1"; 549 549 if ( $wpdb->get_var($dupe) ) { 550 $dupe_message = apply_filters('comment_duplicate_message', __('Duplicate comment detected; it looks as though you’ve already said that!')); 550 551 if ( defined('DOING_AJAX') ) 551 die( __('Duplicate comment detected; it looks as though you’ve already said that!'));552 die( $dupe_message ); 552 553 553 wp_die( __('Duplicate comment detected; it looks as though you’ve already said that!'));554 wp_die( $dupe_message ); 554 555 } 555 556 556 557 do_action( 'check_comment_flood', $comment_author_IP, $comment_author_email, $comment_date_gmt ); … … 607 608 if ( $flood_die ) { 608 609 do_action('comment_flood_trigger', $time_lastcomment, $time_newcomment); 609 610 611 $flood_message = apply_filters('comment_flood_message', __('You are posting comments too quickly. Slow down.')); 612 610 613 if ( defined('DOING_AJAX') ) 611 die( __('You are posting comments too quickly. Slow down.'));614 die( $flood_message ); 612 615 613 wp_die( __('You are posting comments too quickly. Slow down.'), '', array('response' => 403) );616 wp_die( $flood_message, '', array('response' => 403) ); 614 617 } 615 618 } 616 619 }