diff --git a/library/foundation.php b/library/foundation.php index 710f65579..516d785cf 100644 --- a/library/foundation.php +++ b/library/foundation.php @@ -62,10 +62,10 @@ function foundationpress_menu_fallback() { } endif; -// Add Foundation 'is-ctive' class for the current menu item. +// Add Foundation 'is-active' class for the current menu item. if ( ! function_exists( 'foundationpress_active_nav_class' ) ) : function foundationpress_active_nav_class( $classes, $item ) { - if ( 1 === $item->current || true === $item->current_item_ancestor ) { + if ( $item->current == 1 || $item->current_item_ancestor == true ) { $classes[] = 'is-active'; } return $classes; @@ -74,14 +74,14 @@ function foundationpress_active_nav_class( $classes, $item ) { endif; /** - * Use the active class of ZURB Foundation on wp_list_pages output. + * Use the is-active class of ZURB Foundation on wp_list_pages output. * From required+ Foundation http://themes.required.ch. */ if ( ! function_exists( 'foundationpress_active_list_pages_class' ) ) : function foundationpress_active_list_pages_class( $input ) { $pattern = '/current_page_item/'; - $replace = 'current_page_item active'; + $replace = 'current_page_item is-active'; $output = preg_replace( $pattern, $replace, $input );