Changeset 30157
- Timestamp:
- 11/01/2014 08:28:40 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/post-template.php
r30105 r30157 1306 1306 if ( ! empty( $current_page ) ) { 1307 1307 $_current_page = get_post( $current_page ); 1308 if ( in_array( $page->ID, $_current_page->ancestors ) ) {1308 if ( $_current_page && in_array( $page->ID, $_current_page->ancestors ) ) { 1309 1309 $css_class[] = 'current_page_ancestor'; 1310 1310 }
Note: See TracChangeset
for help on using the changeset viewer.