Make WordPress Core

Ticket #39650: 39650.4.patch

File 39650.4.patch, 530 bytes (added by mayurk, 9 years ago)
  • wp-comments-post.php

     
    2828        if ( ! empty( $data ) ) {
    2929                wp_die( '<p>' . $comment->get_error_message() . '</p>', __( 'Comment Submission Failure' ), array( 'response' => $data, 'back_link' => true ) );
    3030        } else {
    31                 exit;
     31                wp_die( '<p>' . $comment->get_error_code() . '</p>', __( 'Comment Submission Failure' ), array( 'back_link' => true ) );
    3232        }
    3333}
    3434