Ticket #15963: avoid-notice-on-orphaned-pages.15963.diff
File avoid-notice-on-orphaned-pages.15963.diff, 748 bytes (added by , 14 years ago) |
---|
-
wp-includes/post.php
3257 3257 $page = get_page($page); 3258 3258 $uri = $page->post_name; 3259 3259 3260 // A page cannot be it 's own parent.3260 // A page cannot be its own parent. 3261 3261 if ( $page->post_parent == $page->ID ) 3262 3262 return $uri; 3263 3263 3264 while ($page->post_parent != 0) { 3265 $page = get_page($page->post_parent); 3264 while ( 3265 $page->post_parent != 0 && 3266 ( $page = get_page( $page->post_parent ) ) 3267 ) { 3266 3268 $uri = $page->post_name . "/" . $uri; 3267 3269 } 3268 3270 … … 5229 5231 } 5230 5232 add_filter( 'wp_get_object_terms', '_post_format_wp_get_object_terms' ); 5231 5233 5232 ?> 5233 No newline at end of file 5234 ?>