Make WordPress Core

Opened 13 years ago

Closed 13 years ago

#19079 closed defect (bug) (duplicate)

Auto Draft database insertion overflow

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


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
13 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.