Fix active state check

Closes #9467
This commit is contained in:
Mike Jolley 2015-10-30 13:31:52 +00:00
parent ad38f6e34f
commit f5933bf9d9
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ function wc_nav_menu_item_classes( $menu_items ) {
}
// Set active state if this is the shop page link
} elseif ( is_shop() && $shop_page == $menu_item->object_id ) {
} elseif ( is_shop() && $shop_page == $menu_item->object_id && 'page' === $menu_item->object ) {
$menu_items[ $key ]->current = true;
$classes[] = 'current-menu-item';
$classes[] = 'current_page_item';