Changeset 47557 for trunk/src/wp-includes/class-walker-page.php
- Timestamp:
- 04/09/2020 03:41:04 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-walker-page.php
r47219 r47557 123 123 if ( ! empty( $current_page ) ) { 124 124 $_current_page = get_post( $current_page ); 125 if ( $_current_page && in_array( $page->ID, $_current_page->ancestors ) ) { 125 126 if ( $_current_page && in_array( $page->ID, $_current_page->ancestors, true ) ) { 126 127 $css_class[] = 'current_page_ancestor'; 127 128 } 129 128 130 if ( $page->ID == $current_page ) { 129 131 $css_class[] = 'current_page_item'; 130 } elseif ( $_current_page && $page->ID == $_current_page->post_parent ) {132 } elseif ( $_current_page && $page->ID === $_current_page->post_parent ) { 131 133 $css_class[] = 'current_page_parent'; 132 134 }
Note: See TracChangeset
for help on using the changeset viewer.