Yosef Karo, Translation:Shulchan Aruch — Even ha-Ezer 3
“ If a woman had relations with one kohen and married another kohen within three months, the child is disqualified from the priesthood. If a kohen has relations with a single girl and admits the child is his son, the son would be a kohen for all matters. ”
