Skip to content

Commit

Permalink
updates no link rendering to span
Browse files Browse the repository at this point in the history
  • Loading branch information
draganescu committed Jun 2, 2020
1 parent af643a8 commit 1973247
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/block-library/src/navigation/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ function block_core_navigation_build_html( $attributes, $block, $colors, $font_s
};

$item_url = get_navigation_link_url( $block['attrs'] );
$item_tag = $item_url ? 'a' : 'div';
$item_tag = $item_url ? 'a' : 'span';

$html .= '<li class="' . esc_attr( $css_classes . ( $has_submenu ? ' has-child' : '' ) ) .
( $is_active ? ' current-menu-item' : '' ) . '"' . $style_attribute . '>' .
Expand Down

0 comments on commit 1973247

Please sign in to comment.