In `Walker_Nav_Menu::start_el()`, `$class_names` is set twice before it is used.

See #27882.

Built from https://develop.svn.wordpress.org/trunk@28330


git-svn-id: http://core.svn.wordpress.org/trunk@28158 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Scott Taylor 2014-05-06 21:33:14 +00:00
parent c96d7fff01
commit 9a1dcd1a7c
1 changed files with 0 additions and 2 deletions

View File

@ -81,8 +81,6 @@ class Walker_Nav_Menu extends Walker {
function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) { function start_el( &$output, $item, $depth = 0, $args = array(), $id = 0 ) {
$indent = ( $depth ) ? str_repeat( "\t", $depth ) : ''; $indent = ( $depth ) ? str_repeat( "\t", $depth ) : '';
$class_names = '';
$classes = empty( $item->classes ) ? array() : (array) $item->classes; $classes = empty( $item->classes ) ? array() : (array) $item->classes;
$classes[] = 'menu-item-' . $item->ID; $classes[] = 'menu-item-' . $item->ID;