Changeset 55906 for trunk/src/wp-includes/class-walker-page.php
- Timestamp:
- 06/12/2023 06:10:17 AM (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-walker-page.php
r52652 r55906 134 134 } 135 135 136 if ( $page->ID == $current_page_id ) {136 if ( $page->ID === (int) $current_page_id ) { 137 137 $css_class[] = 'current_page_item'; 138 138 } elseif ( $_current_page && $page->ID === $_current_page->post_parent ) { 139 139 $css_class[] = 'current_page_parent'; 140 140 } 141 } elseif ( get_option( 'page_for_posts' )== $page->ID ) {141 } elseif ( (int) get_option( 'page_for_posts' ) === $page->ID ) { 142 142 $css_class[] = 'current_page_parent'; 143 143 } … … 169 169 $atts = array(); 170 170 $atts['href'] = get_permalink( $page->ID ); 171 $atts['aria-current'] = ( $page->ID == $current_page_id ) ? 'page' : '';171 $atts['aria-current'] = ( $page->ID === (int) $current_page_id ) ? 'page' : ''; 172 172 173 173 /**
Note: See TracChangeset
for help on using the changeset viewer.