Ticket #5581: wporg_patch.diff
File wporg_patch.diff, 1.2 KB (added by , 17 years ago) |
---|
-
C:/xampp/htdocs/wordpress_trunk/wp-includes/classes.php
434 434 435 435 array_splice( $children_elements, $i, 1 ); 436 436 $output = $this->display_element( $child, $children_elements, $max_depth, $depth + 1, $args, $output ); 437 $i --;437 $i = -1; 438 438 } 439 439 } 440 440 -
C:/xampp/htdocs/wordpress_trunk/wp-admin/includes/template.php
288 288 $children_pages = array(); 289 289 290 290 foreach ( $pages as $page ) { 291 292 // catch and repair bad pages 293 if ($page->post_parent == $page->ID) { 294 $page->post_parent = 0; 295 $wpdb->query( "UPDATE $wpdb->posts SET post_parent = '0' WHERE ID = $page->ID" ); 296 clean_page_cache( $page->ID ); 297 } 298 291 299 if ( 0 == $page->post_parent ) 292 300 $top_level_pages[] = $page; 293 301 else