In Walker_Nav_Menu::start_el()
, $class_names
is set twice before it is used.
See #27882. git-svn-id: https://develop.svn.wordpress.org/trunk@28330 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
3f2a078f5e
commit
b626b11590
@ -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
Block a user