Update functions.php

A site return 404 for all HEAD method... WTF!