[wp-trac] Re: [WordPress Trac] #5498: Manage => Pages may produce orphaned page

WordPress Trac wp-trac at lists.automattic.com
Thu Dec 20 01:19:34 GMT 2007


#5498: Manage => Pages may produce orphaned page
---------------------+------------------------------------------------------
 Reporter:  hailin   |        Owner:  hailin  
     Type:  defect   |       Status:  assigned
 Priority:  normal   |    Milestone:  2.5     
Component:  General  |      Version:          
 Severity:  normal   |   Resolution:          
 Keywords:           |  
---------------------+------------------------------------------------------
Changes (by hailin):

  * owner:  anonymous => hailin
  * status:  new => assigned

Comment:

 In most cases, array_splice preserves index, yet, by spec, it may not.
 When it doesn't, that is causing problems.
 To fix this, we set $i to -1, thus when ++ed, it starts from 0.

-- 
Ticket URL: <http://trac.wordpress.org/ticket/5498#comment:1>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list