Changeset 6427 for trunk/wp-admin/includes/template.php
- Timestamp:
- 12/20/2007 05:29:52 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/template.php
r6403 r6427 261 261 return true; 262 262 263 for ( $i =0; $i < count($children_pages); $i++ ) {263 for ( $i = 0; $i < count($children_pages); $i++ ) { 264 264 265 265 $child = $children_pages[$i]; 266 266 267 267 if ( $child->post_parent == $id ) { 268 268 array_splice($children_pages, $i, 1); 269 269 display_page_row($child, $children_pages, $level+1); 270 $i --;270 $i = -1; //as numeric keys in $children_pages are not preserved after splice 271 271 } 272 272 }
Note: See TracChangeset
for help on using the changeset viewer.