Ticket #4332: 4332.2.diff
File 4332.2.diff, 518 bytes (added by , 9 years ago) |
---|
-
src/wp-comments-post.php
21 21 if ( is_wp_error( $comment ) ) { 22 22 $data = $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><p><a href="javascript:history.back()">' . __( 'Back' ) . '</a></p>', $data ); 25 25 } else { 26 26 exit; 27 27 }