Ticket #47436: 47436.2.patch
File 47436.2.patch, 684 bytes (added by , 6 years ago) |
---|
-
src/wp-includes/nav-menu-template.php
189 189 } 190 190 } 191 191 192 // Add the menu-item-has-children class where applicable 193 if ( $menu_items_with_children ) {192 // Add the menu-item-has-children class where applicable and depth of the menu is not set to 1. 193 if ( $menu_items_with_children && 1 != $args->depth ) { 194 194 foreach ( $sorted_menu_items as &$menu_item ) { 195 195 if ( isset( $menu_items_with_children[ $menu_item->ID ] ) ) { 196 196 $menu_item->classes[] = 'menu-item-has-children';