Make WordPress Core

Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#15564 closed defect (bug) (wontfix)

Sequential <br> tags are stripped from posts on update/publish

Reported by: markel Owned by:
Milestone: Priority: normal
Severity: major Version: 3.1
Component: General Keywords:
Focuses: Cc:


When using either the Visual Editor or the HTML editor, line breaks, either by entering the <br> tag or by using Shift+Return in the Visual Editor, are being stripped out when flipping from one mode to the other or when updating or publishing the post.

This leave authors with no way to reliably insert whitespace without the use of non-breaking spaces or images.

To reproduce:

  1. Create a new post.
  2. Populate it with some text as well as a few line breaks.
  3. Publish.

Change History (2)

#1 @azaozz
10 years ago

  • Resolution set to wontfix
  • Status changed from new to closed
  • Summary changed from <br> tags are stripped from posts on update/publish to Sequential <br> tags are stripped from posts on update/publish

I think you meant sequential tags as single <br> tags work properly. I'm not sure which one is worse:

<p>some text</p>


<p>some text</p>

However most new browsers would disregard improperly used <br> and not show them as white space anyways.

#2 @nacin
10 years ago

  • Milestone Awaiting Review deleted
Note: See TracTickets for help on using tickets.