Opened 14 months ago
Last modified 14 months ago
#20317 new enhancement
Delete auto-draft using window.onbeforeunload
| Reported by: |
|
Owned by: | |
|---|---|---|---|
| Priority: | low | Milestone: | Awaiting Review |
| Component: | General | Version: | |
| Severity: | normal | Keywords: | 2nd-opinion |
| Cc: |
Description
When a user goes to post-new.php, a new auto-draft post is created.
Old auto-drafts are garbage-collected: #19663
To lessen the need for GC, we could send an AJAX request to delete the auto-draft immediately when the user navigates away from the page (but not when he presses the Submit button).
Change History (2)
Note: See
TracTickets for help on using
tickets.

The only problem I see would be when a user presses the Back button and then presses Forward again. Since the screen is loaded from memory instead of doing a new request, they would end up with an invalid post ID.