Ticket #23154: 23154.diff
File 23154.diff, 621 bytes (added by , 12 years ago) |
---|
-
wp-includes/link-template.php
304 304 305 305 if ( $wp_rewrite->using_permalinks() && ( $post->post_parent > 0 ) && ( $post->post_parent != $post->ID ) ) { 306 306 $parent = get_post($post->post_parent); 307 if ( 'page' == $parent->post_type )307 if ( $parent && 'page' == $parent->post_type ) 308 308 $parentlink = _get_page_link( $post->post_parent ); // Ignores page_on_front 309 309 else 310 310 $parentlink = get_permalink( $post->post_parent );