Ticket #26901: 26901.diff
File 26901.diff, 559 bytes (added by , 10 years ago) |
---|
-
src/wp-includes/post-template.php
1296 1296 1297 1297 if ( ! empty( $current_page ) ) { 1298 1298 $_current_page = get_post( $current_page ); 1299 if ( in_array( $page->ID, $_current_page->ancestors ) ) {1299 if ( $_current_page && in_array( $page->ID, $_current_page->ancestors ) ) { 1300 1300 $css_class[] = 'current_page_ancestor'; 1301 1301 } 1302 1302 if ( $page->ID == $current_page ) {