Ticket #4332: 4332.4.diff
File 4332.4.diff, 646 bytes (added by , 9 years ago) |
---|
-
src/wp-comments-post.php
19 19 20 20 $comment = wp_handle_comment_submission( wp_unslash( $_POST ) ); 21 21 if ( is_wp_error( $comment ) ) { 22 $data = $comment->get_error_data();22 $data = intval( $comment->get_error_data() ); 23 23 if ( ! empty( $data ) ) { 24 wp_die( $comment->get_error_message(), $data);24 wp_die( '<p>' . $comment->get_error_message() . '</p>', __( 'Comment Submission Failure' ), array( 'response' => $data, 'back_link' => true ) ); 25 25 } else { 26 26 exit; 27 27 }