Make WordPress Core

Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#16060 closed defect (bug) (duplicate)

Cannot close HTML comments in WordPress page/post

Reported by: eharris's profile eharris Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.0.4
Component: Editor Keywords: has-patch 3.2-early
Focuses: Cc:


WordPress' HTML editor for creating pages and posts does not allow "-->", converting it instead to "&8211;>". This is fine for the visual editor, but the HTML editor should not make such substitutions, as it means that it becomes impossible to comment out sections on pages for whatever reason The editor does NOT make the same change to "<!--", so the comment successfully opens, but it does not close, creating formatting problems. This has been documented for 2 years on the WordPress support forums:

Attachments (1)

16060.patch (593 bytes) - added by SergeyBiryukov 13 years ago.

Download all attachments as: .zip

Change History (6)

#1 @SergeyBiryukov
13 years ago

  • Keywords has-patch added; HTML comment corrupted formatting character entity substitution removed

I have encountered this myself.

#2 @SergeyBiryukov
13 years ago

Example post text to reproduce:

<!-- Sample list
	<li>Sample item</li>
</ul> -->


<!-- Sample list
	<li>Sample item</li>
</ul> –>

#3 @dd32
13 years ago

  • Keywords 3.2-early added
  • Milestone changed from Awaiting Review to Future Release

#4 @SergeyBiryukov
13 years ago

  • Keywords changed from has-patch 3.2-early to has-patch 3.2-early
  • Resolution set to duplicate
  • Status changed from new to closed

#5 @SergeyBiryukov
13 years ago

  • Milestone Future Release deleted
Note: See TracTickets for help on using tickets.