Changeset 36424
- Timestamp:
- 01/30/2016 09:55:32 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-comments-post.php
r34799 r36424 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;
Note: See TracChangeset
for help on using the changeset viewer.