Make WordPress Core

Ticket #4332: 4332.2.diff

File 4332.2.diff, 518 bytes (added by rachelbaker, 9 years ago)

Refresh of wonderboymusic's patch after #10377

  • src/wp-comments-post.php

     
    2121if ( is_wp_error( $comment ) ) {
    2222        $data = $comment->get_error_data();
    2323        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 );
    2525        } else {
    2626                exit;
    2727        }