[wp-trac] [WordPress Trac] #2691: HTML comments in posts aren't handled properly.

WordPress Trac noreply at wordpress.org
Wed May 13 21:07:18 UTC 2015


#2691: HTML comments in posts aren't handled properly.
-------------------------------------------------+-------------------------
 Reporter:  gord                                 |       Owner:
     Type:  defect (bug)                         |      Status:  reopened
 Priority:  normal                               |   Milestone:  Future
Component:  Formatting                           |  Release
 Severity:  normal                               |     Version:  2.8.5
 Keywords:  wpautop needs-patch needs-unit-      |  Resolution:
  tests dev-feedback                             |     Focuses:
-------------------------------------------------+-------------------------

Comment (by miqrogroove):

 I'm working on a new patch for this and want some fresh comments regarding
 @collinsinternet patch which attempts to avoid adding BR directly after an
 HTML comment.

 Is the BR after the comment part of this bug?  Or is it only the BR that
 gets added inside a comment?

 Would it be a step in the right direction for wpautop to start avoiding
 HTML comments but still add a BR when the comment is followed by a single
 newline character?

 What is the desired behavior when an HTML comment is surrounded by
 multiple newline characters?

--
Ticket URL: <https://core.trac.wordpress.org/ticket/2691#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list