nested paragraphs in comment post errors
-
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?
- The topic ‘nested paragraphs in comment post errors’ is closed to new replies.