Update functions.php

Validate incoming version
Merge pull request #9 from bor0/bug67461

Update functions.php

* bor0/bug67461:
  Update functions.php