Delete auto-draft using window.onbeforeunload
|Reported by:||scribu||Owned by:|
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 (3)
- Summary changed from Delete auto-draft on unload to Delete auto-draft using window.onbeforeunload