WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

#9305 closed defect (bug) (duplicate)

wpautop: empty post_content results in br tag when output

Reported by: gcorne Owned by: anonymous
Priority: low Milestone: 2.7.2
Component: General Version: 2.7.1
Severity: trivial Keywords: has-patch
Cc:

Description

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 4 years ago.

Download all attachments as: .zip

Change History (4)

gcorne4 years ago

comment:1 FFEMTcJ4 years ago

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

comment:2 sivel4 years ago

  • Keywords has-patch added
  • Version set to 2.7.1

comment:3 Denis-de-Bernardy4 years ago

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

dup of #6128, which also fixes the javascript

Note: See TracTickets for help on using tickets.