• Resolved Tom

    (@tnbnicer)


    Hi,
    This is probably wrong. Line 30 in ‘wordpress/wp-comments-post.php’:

    '<p>' . $comment->get_error_message() . '</p>'

    An example of the Html code generated:

    <p><p><strong>ERROR</strong>: please fill the required fields (name, email).</p></p>

    The reason is that in function _default_wp_die_handler, line 3072 in ‘wordpress/wp-includes/functions.php’ (WordPress 5.2.1), there already is a paragraph tag.

    $message = "<p>$message</p>"

    I would suggest removing the paragraph in ‘wp-comments-post.php’. Simply $comment->get_error_message() ought to do.

    I hope I’m not nitpicking.

    edit: I just realized this might be the wrong forum, although perhaps the issue described can be fixed by the next release?

    • This topic was modified 4 years, 11 months ago by Tom.
    • This topic was modified 4 years, 11 months ago by Tom.
    • This topic was modified 4 years, 11 months ago by Tom.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘nested paragraphs in comment post errors’ is closed to new replies.