diff --git src/wp-includes/comment.php src/wp-includes/comment.php
index b260ee8..36a277a 100644
|
|
function wp_allow_comment( $commentdata, $avoid_die = false ) { |
646 | 646 | */ |
647 | 647 | do_action( 'comment_duplicate_trigger', $commentdata ); |
648 | 648 | if ( true === $avoid_die ) { |
649 | | return new WP_Error( 'comment_duplicate', __( 'Duplicate comment detected; it looks as though you’ve already said that!' ), $dupe_id ); |
| 649 | return new WP_Error( 'comment_duplicate', __( 'Duplicate comment detected; it looks as though you’ve already said that!' ), 409 ); |
650 | 650 | } else { |
651 | 651 | if ( wp_doing_ajax() ) { |
652 | 652 | die( __('Duplicate comment detected; it looks as though you’ve already said that!') ); |
… |
… |
function wp_allow_comment( $commentdata, $avoid_die = false ) { |
702 | 702 | ); |
703 | 703 | |
704 | 704 | if ( $is_flood ) { |
705 | | return new WP_Error( 'comment_flood', __( 'You are posting comments too quickly. Slow down.' ) ); |
| 705 | return new WP_Error( 'comment_flood', __( 'You are posting comments too quickly. Slow down.' ), 429 ); |
706 | 706 | } |
707 | 707 | |
708 | 708 | if ( ! empty( $commentdata['user_id'] ) ) { |