#19310 closed defect (bug) (duplicate)
In the Database creates an empty record with the status of Auto-Draft
Reported by: |
|
Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | |
Component: | Autosave | Keywords: | |
Focuses: | Cc: |
Description
When I walk at wp-admin/post-new.php
or wp-admin/post-new.php?post_type=page
in Database creates an empty record with the status of Auto-Draft. If you leave this page without filling it, then this record can only edit in the database. Important for me is the numbering of posts. How do I disable creation this first entry in the Database with the status of Auto-Draft?
In the file wp-config.php
define ('AUTOSAVE_INTERVAL', 3600);
define ('WP_POST_REVISIONS', false);
Change History (5)
#2
in reply to:
↑ 1
@
12 years ago
Replying to dd32:
In short: You can't, it's an integral part of the functionality offered on the new Post page.
Hmm .. My blog contains technical texts and correspondence. Permalinks look /%post_id%
I have no attachments, menu and the extra "frills." Only texts. In the navigation there gaps in the numbering of posts.
It is a pity that I can not disable this feature. (
#3
@
12 years ago
- Keywords needs-patch removed
- Milestone Awaiting Review deleted
- Resolution set to duplicate
- Status changed from new to closed
In short: You can't, it's an integral part of the functionality offered on the new Post page.
Post ID's shouldn't be relied upon to be incremental with each post, It's a Unique reference to a "Post Object" a Post Object being any one of the dozen (or more) things which are stored as that type, It's not just limited to Posts|Pages|Attachments|Revisions|AutoSaves either, It can be Plugin data, Menu's, Internal storage for posts (Auto Drafts), and in the future, many other things too.
The AutoDrafts will be cleaned up/removed from the database regularly automatically.