Make WordPress Core


Ignore:
Timestamp:
07/05/2006 10:00:03 PM (18 years ago)
Author:
ryan
Message:

Use wp_die(). Props filosofo. fixes #2914

File:
1 edited

Legend:

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

    r3902 r3985  
    182182    $dupe .= ") AND comment_content = '$comment_content' LIMIT 1";
    183183    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!') );
    185185
    186186    // Simple flood-protection
     
    190190        if ( ($time_newcomment - $time_lastcomment) < 15 ) {
    191191            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.') );
    193193        }
    194194    }
Note: See TracChangeset for help on using the changeset viewer.