equal
deleted
inserted
replaced
22 |
22 |
23 nocache_headers(); |
23 nocache_headers(); |
24 |
24 |
25 $comment = wp_handle_comment_submission( wp_unslash( $_POST ) ); |
25 $comment = wp_handle_comment_submission( wp_unslash( $_POST ) ); |
26 if ( is_wp_error( $comment ) ) { |
26 if ( is_wp_error( $comment ) ) { |
27 $data = intval( $comment->get_error_data() ); |
27 $data = (int) $comment->get_error_data(); |
28 if ( ! empty( $data ) ) { |
28 if ( ! empty( $data ) ) { |
29 wp_die( |
29 wp_die( |
30 '<p>' . $comment->get_error_message() . '</p>', |
30 '<p>' . $comment->get_error_message() . '</p>', |
31 __( 'Comment Submission Failure' ), |
31 __( 'Comment Submission Failure' ), |
32 array( |
32 array( |