Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 9 years ago

#9305 closed defect (bug) (duplicate)

wpautop: empty post_content results in br tag when output

Reported by: gcorne's profile gcorne Owned by:
Milestone: Priority: low
Severity: trivial Version: 2.7.1
Component: General Keywords: has-patch
Focuses: Cc:


If the post_content field is empty, wpautop outputs a <br />. This can cause design issues when post_content is optional requiring php code in the theme to work-a-around the issue.

Attachments (1)

formatting.php.diff (493 bytes) - added by gcorne 15 years ago.

Download all attachments as: .zip

Change History (5)

15 years ago

  • Milestone changed from Unassigned to 2.7.2
  • Priority changed from normal to low
  • Severity changed from normal to trivial

#2 @sivel
15 years ago

  • Keywords has-patch added
  • Version set to 2.7.1

#3 @Denis-de-Bernardy
15 years ago

  • Resolution set to duplicate
  • Status changed from new to closed

dup of #6128, which also fixes the javascript

#4 @DrewAPicture
9 years ago

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