From 909fe70f4e6530acda0609bb8810b2aec48e13bd Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Fri, 21 Feb 2014 20:51:23 +0000 Subject: [PATCH] Remove unused variable. props ericlewis. fixes #27176. git-svn-id: https://develop.svn.wordpress.org/trunk@27227 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/nav-menu-template.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/nav-menu-template.php b/src/wp-includes/nav-menu-template.php index 4afe7f75a0..7b559d30da 100644 --- a/src/wp-includes/nav-menu-template.php +++ b/src/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 . ''; + $output .= $indent . ''; $atts = array(); $atts['title'] = ! empty( $item->attr_title ) ? $item->attr_title : '';