Remove unused variable.
props ericlewis. fixes #27176. Built from https://develop.svn.wordpress.org/trunk@27227 git-svn-id: http://core.svn.wordpress.org/trunk@27084 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
8452a209c4
commit
9cc9b023b4
|
@ -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 . '<li' . $id . $value . $class_names .'>';
|
||||
$output .= $indent . '<li' . $id . $class_names .'>';
|
||||
|
||||
$atts = array();
|
||||
$atts['title'] = ! empty( $item->attr_title ) ? $item->attr_title : '';
|
||||
|
|
Loading…
Reference in New Issue