{"id":11576973,"date":"2019-05-27T17:14:41","date_gmt":"2019-05-27T17:14:41","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/nested-paragraphs-in-comment-post-errors\/"},"modified":"2019-05-27T17:48:01","modified_gmt":"2019-05-27T17:48:01","slug":"nested-paragraphs-in-comment-post-errors","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/nested-paragraphs-in-comment-post-errors\/","title":{"rendered":"nested paragraphs in comment post errors"},"content":{"rendered":"<p>Hi,<br \/>\nThis is probably wrong. Line 30 in &#8216;wordpress\/wp-comments-post.php&#8217;:<\/p>\n<p><code>&#039;&lt;p&gt;&#039; . $comment-&gt;get_error_message() . &#039;&lt;\/p&gt;&#039;<\/code><\/p>\n<p>An example of the Html code generated:<\/p>\n<p><code>&lt;p&gt;&lt;p&gt;&lt;strong&gt;ERROR&lt;\/strong&gt;: please fill the required fields (name, email).&lt;\/p&gt;&lt;\/p&gt;<\/code><\/p>\n<p>The reason is that in <code>function _default_wp_die_handler<\/code>, line 3072 in &#8216;wordpress\/wp-includes\/functions.php&#8217; (WordPress 5.2.1), there already is a paragraph tag.<\/p>\n<p><code>$message = &quot;&lt;p&gt;$message&lt;\/p&gt;&quot;<\/code><\/p>\n<p>I would suggest removing the paragraph in &#8216;wp-comments-post.php&#8217;. Simply <code>$comment-&gt;get_error_message()<\/code> ought to do.<\/p>\n<p>I hope I\u2019m not nitpicking.<\/p>\n<p>edit: I just realized this might be the wrong forum, although perhaps the issue described can be fixed by the next release?<\/p>\n","protected":false},"template":"","class_list":["post-11576973","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11576973","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":3,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11576973\/revisions"}],"predecessor-version":[{"id":11577072,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/11576973\/revisions\/11577072"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=11576973"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}