WordPress.org

Make WordPress Core

Ticket #4332: 4332.3.diff

File 4332.3.diff, 526 bytes (added by rachelbaker, 4 years ago)

Added double left angle quote HTML entity to Back link

  • 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()">&laquo; ' . __( 'Back' ) . '</a></p>', $data );
    2525        } else {
    2626                exit;
    2727        }