Ticket #17670: 17670.4.diff
| File 17670.4.diff, 1.0 KB (added by , 15 years ago) |
|---|
-
wp-includes/post.php
3164 3164 if ( $page->post_name == $revparts[0] ) { 3165 3165 $count = 0; 3166 3166 if ( $page->post_parent != 0 ) { 3167 if ( null === ( $parent_page = $pages[ $page->post_parent ] ) ) 3167 $parent_page = ( isset( $pages[ $page->post_parent ] ) ) ? $pages[ $page->post_parent ] : null; 3168 if ( empty($parent_page) ) 3168 3169 continue; 3169 3170 3170 while ( $parent_page->ID != 0) {3171 while ( !empty($parent_page) ) { 3171 3172 $count++; 3172 3173 if ( $parent_page->post_name != $revparts[ $count ] ) 3173 3174 break; 3174 $parent_page = $pages[ $parent_page->post_parent ];3175 $parent_page = ( isset( $pages[ $parent_page->post_parent ] ) ) ? $pages[ $parent_page->post_parent ] : null; 3175 3176 } 3176 3177 3177 if ( $parent_page->ID == 0&& $count+1 == count($revparts) ) {3178 if ( empty($parent_page) && $count+1 == count($revparts) ) { 3178 3179 $foundid = $page->ID; 3179 3180 break; 3180 3181 }
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)