diff --git a/wp-includes/nav-menu-template.php b/wp-includes/nav-menu-template.php index 4afe7f75a0..7b559d30da 100644 --- a/wp-includes/nav-menu-template.php +++ b/wp-includes/nav-menu-template.php @@ -82,7 +82,7 @@ class Walker_Nav_Menu extends Walker { function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { $indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; - $class_names = $value = ''; + $class_names = ''; $classes = empty( $item->classes ) ? array() : (array) $item->classes; $classes[] = 'menu-item-' . $item->ID; @@ -115,7 +115,7 @@ class Walker_Nav_Menu extends Walker { $id = apply_filters( 'nav_menu_item_id', 'menu-item-'. $item->ID, $item, $args ); $id = $id ? ' id="' . esc_attr( $id ) . '"' : ''; - $output .= $indent . '