Skip redirect when defined DOING_CRON
Merge pull request #1 from jim912/master

Skip redirect when defined DOING_CRON