Update functions.php
Merge pull request #25 from lregla/master

$post out of scope