add_filter('wp_nav_menu', function($nav_menu){
$result = preg_match_all('#<li(?:.*)><a href="[\#]{1}(.*)">(?:.*)</a></li>#', $nav_menu, $matches);
if($result){
foreach($matches[0] as $match){
$link = $match;
$match = str_replace(array('current-menu-item', 'current-category-ancestor'), '', $match);
$nav_menu = str_replace($link, $match, $nav_menu);
}
}
return $nav_menu;
});