Changeset 3985 for trunk/wp-includes/comment.php
- Timestamp:
- 07/05/2006 10:00:03 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/comment.php
r3902 r3985 182 182 $dupe .= ") AND comment_content = '$comment_content' LIMIT 1"; 183 183 if ( $wpdb->get_var($dupe) ) 184 die( __('Duplicate comment detected; it looks as though you\'ve already said that!') );184 wp_die( __('Duplicate comment detected; it looks as though you\'ve already said that!') ); 185 185 186 186 // Simple flood-protection … … 190 190 if ( ($time_newcomment - $time_lastcomment) < 15 ) { 191 191 do_action('comment_flood_trigger', $time_lastcomment, $time_newcomment); 192 die( __('Sorry, you can only post a new comment once every 15 seconds. Slow down cowboy.') );192 wp_die( __('Sorry, you can only post a new comment once every 15 seconds. Slow down cowboy.') ); 193 193 } 194 194 }
Note: See TracChangeset
for help on using the changeset viewer.