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:
parent
c96d7fff01
commit
9a1dcd1a7c
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue