From 56e1be0251f571c7ad66d5d4d014a596ca6c302f Mon Sep 17 00:00:00 2001 From: Antoine M Date: Tue, 3 Mar 2026 17:03:22 +0100 Subject: [PATCH] REFACTOR cleaning and removing debug logging and unnecessary conditions for menu item handling --- includes/navwalker.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/includes/navwalker.php b/includes/navwalker.php index 6aec031..9b423e2 100644 --- a/includes/navwalker.php +++ b/includes/navwalker.php @@ -30,22 +30,11 @@ function wrap_parent_menu_item_buttons($output, $item, $depth, $args) $subtitle_html = '' . $page_subtitle . ''; - if ($item->url === 'https://carhop.local/a-propos/equipe/') { - write_log($item); - write_log($subtitle_html); - write_log($icon_html); - // $icon_html = get_archive_page_icon_html($item->object); - // $subtitle_html = get_archive_page_subtitle_html($item->object); - } if ($item->type === 'post_type_archive') { $icon_html = get_archive_page_icon_html($item->object); $subtitle_html = get_archive_page_subtitle_html($item->object); } - if ($item->ID === 494) { - write_log($item); - } - $output = '' . $icon_html . ''; return $output; }