Fixed WetKit Core for Issue #2687299 by natew: Argument 3 passed to menu_tree_prune_tree() must be of the type array, boolean given