- fixed conditional menu handlers for MegaMenu themes (#1334);

This commit is contained in:
Mykyta Synelnikov
2024-01-03 17:43:20 +02:00
parent b5c13695b9
commit 2c2fde8c83
+2
View File
@@ -63,6 +63,8 @@ if ( ! is_admin() ) {
//other filter
foreach ( $menu_items as $item ) {
if ( empty( $item->ID ) ) {
// Left item with empty ID for the cases like in MegaMenu when generated submenu doesn't have the menu item ID.
$filtered_items[] = $item;
continue;
}