Update core.php
Merge pull request #1 from mauran/patch-1