| 83 | | $attributes = ! empty( $item->attr_title ) ? ' title="' . esc_attr( $item->attr_title ) .'"' : ''; |
| 84 | | $attributes .= ! empty( $item->target ) ? ' target="' . esc_attr( $item->target ) .'"' : ''; |
| 85 | | $attributes .= ! empty( $item->xfn ) ? ' rel="' . esc_attr( $item->xfn ) .'"' : ''; |
| 86 | | $attributes .= ! empty( $item->url ) ? ' href="' . esc_attr( $item->url ) .'"' : ''; |
| | 83 | $atts = array(); |
| | 84 | $atts['title'] = empty( $item->attr_title ) ? '' : sprintf( 'title="%s"', esc_attr( $item->attr_title ) ); |
| | 85 | $atts['target'] = empty( $item->target ) ? '' : sprintf( 'target="%s"', esc_attr( $item->target ) ); |
| | 86 | $atts['rel'] = empty( $item->xfn ) ? '' : sprintf( 'rel="%s"', esc_attr( $item->xfn ) ); |
| | 87 | $atts['href'] = empty( $item->url ) ? '' : sprintf( 'href="%s"', esc_attr( esc_url( $item->url ) ) ); |
| | 88 | $attributes = implode( ' ', apply_filters( 'nav_menu_a_attributes', $atts, $item, $args ) ); |