🐞 fix: Fix bogus target logic

This commit is contained in:
Keith Solomon
2026-02-05 12:36:35 -06:00
parent b5c3c5d6d0
commit 131252bd67

View File

@@ -26,7 +26,7 @@ if ( ! empty( $item->classes ) ) {
<li id="menuVdiItem<?php echo esc_attr( $item->ID ); ?>" class="<?php echo esc_attr( implode( ' ', $itemClasses ) ); ?>">
<a href="<?php echo esc_url( $item->url ); ?>" aria-current="<?php echo esc_attr( $currentPage( $item ) ); ?>"
<?php echo isset( $item->target ) ? esc_attr( "target='$item->target'" ) : ''; ?> class="menu-vdi__link">
<?php echo ! empty( $item->target ) ? esc_attr( "target='$item->target'" ) : ''; ?> class="menu-vdi__link">
<?php echo esc_html( $item->title ); ?>
</a>
</li>