[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
Sat Jan 16 07:40:41 UTC 2010


#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:  closed 
 Priority:  low           |    Milestone:         
Component:  General       |      Version:  2.8.2  
 Severity:  minor         |   Resolution:  invalid
 Keywords:                |  
--------------------------+-------------------------------------------------

Comment(by nacin):

 misty9,

 Comment 12 came from the lead developer of WordPress, so I'm going to go
 out on a limb here and say that carries a little weight.

 Developers have been trying to explain the "bug" is not a bug. Now I'm
 noticing that you also apparently hinted more specifically at some kind of
 an issue with WP skipping IDs, so let me suggest what is going on. (No
 fewer than five developers, including me, have read that as a general
 misunderstanding of how the "posts" table is used, based on the overall
 "bug" report.)

 WordPress uses IDs as they are assigned, incrementally by the database. If
 an ID no longer exists in your table, then a row with that ID was at one
 point present, then discarded of, such as a deleted post or a discarded
 autosave.

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


More information about the wp-trac mailing list