koenemann 2017-11-24 07:55:53 +01:00
parent 7d4c714cee
commit 07f950730e
1 changed files with 1 additions and 1 deletions

View File

@ -101,7 +101,7 @@ class WP_Bootstrap_Navwalker extends Walker_Nav_Menu {
$id = $id ? ' id="' . esc_attr( $id ) . '"' : ''; $id = $id ? ' id="' . esc_attr( $id ) . '"' : '';
$output .= $indent . '<li' . $id . $value . $class_names . '>'; $output .= $indent . '<li' . $id . $value . $class_names . '>';
$atts = array(); $atts = array();
$atts['title'] = ! empty( $item->title ) ? $item->title : ''; if ( empty( $item->attr_title ) ) { $atts['title'] = ! empty( $item->title ) ? strip_tags( $item->title ) : ''; } else { $atts['title'] = $item->attr_title; }
$atts['target'] = ! empty( $item->target ) ? $item->target : ''; $atts['target'] = ! empty( $item->target ) ? $item->target : '';
$atts['rel'] = ! empty( $item->xfn ) ? $item->xfn : ''; $atts['rel'] = ! empty( $item->xfn ) ? $item->xfn : '';
// If item has_children add atts to a. // If item has_children add atts to a.