Skip to content

Commit

Permalink
part22-b another small fix to walker
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiradorn committed Aug 26, 2018
1 parent d58bb76 commit c37497a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/walker.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { //

// merging
$class_names = join( ' ', apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args ) );
$class_names = ' class="nav-item "' . esc_attr( $class_names ) . '"';
$class_names = ' class="nav-item ' . esc_attr( $class_names ) . '"';

$id = apply_filters( 'nav_menu_item_id', 'menu-item-'.$item->ID, $item, $args );
$id = strlen( $id ) ? ' id="' . esc_attr( $id ) . '"' : '';
Expand Down

0 comments on commit c37497a

Please sign in to comment.