Fix variable scope on IS_WPCOM check.