Only apply the filter when we're in the loop. Otherwise, it can get applied for things like HEAD
Merge pull request #3 from Automattic/loop-fix

Only apply the filter when we're in the loop. Otherwise, it can get appl...