inc/functions.php Fix location of safe trip code checks