WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 9 years ago

#19079 closed defect (bug) (duplicate)

Auto Draft database insertion overflow

Reported by: Zatsugami Owned by:
Milestone: Priority: normal
Severity: major Version: 3.2.1
Component: Posts, Post Types Keywords:
Focuses: Cc:

Description

When you just visit Posts > Add new a draft is inserted into database.
If you leave the page without doing anything the entry remains unused and is inaccessible. This leads to a great number of trash database entries.
You can just hit refresh few times and you end up with several auto drafts. This is obviously a weird behavior which I consider as a bug.
Also, the save_post action is called because of that which is misleading when you think about process of data insertion.
Even just after fresh install there are 2 drafts already in database!?

Change History (1)

#1 @nacin
9 years ago

  • Keywords needs-patch needs-unit-tests removed
  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

These are cleaned up after one week.

When we made the switch to auto-drafts in 3.0, no one really commented on save_post being triggered. Indeed, it triggers in a number of other situations, such as Quick Edit.

For more, #18800.

Note: See TracTickets for help on using tickets.