[Heber J. Grant and David O. McKay]
... Should persons guilty of adultery be dealt with for their membership, or for their fellowship in the Church?
Every case should be considered on its merits. If the sin was committed in secret, and the person has confessed, the case should not be made public, but the authority to whom the confession is made should grant the forgiveness asked and the person be permitted to retain his or her membership in the Church. If, however, the case is a flagrant one and known publicly, then such necessary restitution should be made as seems fitting to the presiding authorities. (See: Doctrine and Covenants, Section 42:90-93.)
[Heber J. Grant and David O. McKay, Letter to Reuben M. Wiberg, as quoted in Minutes of the Apostles of The Church of Jesus Christ of Latter-day Saints, 1910-1951, Privately Published, Salt Lake City, Utah 2010]