Fix check for wpcom and setup variables to reuse.