WordPress.org

Make WordPress Core

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#19310 closed defect (bug) (duplicate)

In the Database creates an empty record with the status of Auto-Draft

Reported by: wikicms 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)

comment:1 follow-up: @dd323 years ago

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.

comment:2 in reply to: ↑ 1 @wikicms3 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. (

comment:3 @SergeyBiryukov3 years ago

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

comment:4 @mikeschinkel3 years ago

  • Cc mikeschinkel@… added

@wikicms - If you really need this feature you should manage the sequential IDs yourself in a custom field and then implement custom URL routing. It shouldn't be too hard to pull that off.

comment:5 @wikicms3 years ago

@mikeschinkel - Ok, I'll think about it. Thanks

Note: See TracTickets for help on using tickets.