- Timestamp:
- 07/17/2014 09:13:53 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-admin/includes/class-wp-posts-list-table.php
r29137 r29206 415 415 foreach ( $pages as $page ) { 416 416 417 // catch and repair bad pages417 // Catch and repair bad pages. 418 418 if ( $page->post_parent == $page->ID ) { 419 419 $page->post_parent = 0; … … 450 450 } 451 451 452 // if it is the last pagenum and there are orphaned pages, display them with paging as well452 // If it is the last pagenum and there are orphaned pages, display them with paging as well. 453 453 if ( isset( $children_pages ) && $count < $end ){ 454 454 foreach ( $children_pages as $orphans ){ … … 592 592 if ( $this->hierarchical_display ) { 593 593 if ( 0 == $level && (int) $post->post_parent > 0 ) { 594 // sent level 0 by accident, by default, or because we don't know the actual level594 // Sent level 0 by accident, by default, or because we don't know the actual level. 595 595 $find_main_page = (int) $post->post_parent; 596 596 while ( $find_main_page > 0 ) {
Note: See TracChangeset
for help on using the changeset viewer.