[wp-trac] [WordPress Trac] #2691: HTML comments in posts aren't handled properly.
WordPress Trac
noreply at wordpress.org
Thu Jan 26 17:31:40 UTC 2017
#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 adamsilverstein):
In [attachment:2691.3.diff] :
* refactor unit tests using dataProvider
* only remove the tailing </p> after an HTML comment when the paragraph
starts as a comment
*adjust the regex for adding breaks after comments - exclude cases where a
closing </p> tag is already present
all of the formatting group unit tests now pass. appreciate testing &
feedback.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/2691#comment:11>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list