Make WordPress Core

Opened 11 years ago

Closed 11 years ago

#22483 closed defect (bug) (duplicate)

Trouble with saving new title-less, content-less posts.

Reported by: trepmal's profile trepmal Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.4
Component: Administration Keywords:
Focuses: Cc:


  1. Add New post
  2. Don't fill in title, content, or excerpt (causing the 'wp_insert_post_empty_content' filter to return true)
  3. Hit Publish or Save Draft

WordPress gives a 'post published' or 'post updated' notice respectively.

However, it's actually still an auto-draft. The 'view post' link in either notice returns a 404, and it the post doesn't get listed on edit.php, so once you close the page, there's no link to get back.

While I'm sure it's unlikely that anyone is publishing or drafting empty posts, adding custom fields or choosing a featured image does not change the outcome.

If on step 3 I click Preview instead, I get "Preview not available. Please save as a draft first." So I click Save Draft, then Preview and end up with a 404.

Confirmed this with 3.4.2 and trunk (revision 22616) - haven't looked further back.

Change History (1)

#1 @SergeyBiryukov
11 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed
Note: See TracTickets for help on using tickets.