[wp-trac] [WordPress Trac] #10655: Post/Page ID Count skips one number when a new page or post created in WordPress 2.8.2

WordPress Trac wp-trac at lists.automattic.com
Thu Aug 20 18:36:30 UTC 2009


#10655: Post/Page ID Count skips one number when a new page or post created in
WordPress 2.8.2
--------------------------+-------------------------------------------------
 Reporter:  misty9        |        Owner:          
     Type:  defect (bug)  |       Status:  reopened
 Priority:  low           |    Milestone:          
Component:  General       |      Version:  2.8.2   
 Severity:  minor         |   Resolution:          
 Keywords:                |  
--------------------------+-------------------------------------------------
Changes (by misty9):

  * status:  closed => reopened
  * resolution:  invalid =>


Comment:

 Neither of you have addressed the issue in the bug.

 1. I use the post/page IDs to easily track which page I am updating.
 Disabling Post Revision is NOT applicable here.

 2. "Post IDs are used internally for a number of things. They are not
 guaranteed to be consecutive."

 Because "Post IDs are used internally for a number of things",  it does
 NOT mean an efficient SQL programming practice is not necessary for this
 basic WP functionality to work correctly.

 If SQL code works correctly, the post/past IDs indicate the actual total
 number of posts/pages in a given site. Currently, the post IDs are twice
 as many as the total number of the posts or pages.

 This is a bug whether the Post IDs are used for internally or otherwise.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10655#comment:4>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list