The relevant revelation for our day and age is a theology distilled from The Apocalrock sightings that covers why people are born with same sex attraction.
God the Eternal Father commanded us to come forth and receive an independent sphere of existence by its relative gift of knowledge. For us it was that of man in the likeness of God. For all life it was according to their sphere. Worlds, animals, etc. God is the Eternal Father of all things in this way from the beginning. It is only accomplished by the word of his power and not by way of seeds so there is no sexual differentiation attached to this proto-stage of creation. It was an eternity BEFORE we were given spirit bodies from exalted parents assigned to us.
So in the organization of intelligence and the councils held before we were added upon or asked to sustain God and follow Christ we were not sexually assigned beings. We maintained a fullness of light and truth and were not diminished by sexual differentiation.
D&C 93: 30
30 All truth is independent in that sphere in which God has placed it, to act for itself, as all intelligence also; otherwise there is no existence.However, then came being added upon with bodies. Bodies spiritual and bodies physical. These both come by way of the seeds, both in the world and out of the world, and would necessitate sexual identities, and thereby a loss of the fullness of light and truth every intelligence naturally possesses. SATAN and his minions would not have it. They noticed how God is not without a fullness of light and truth and thought they should not be dimmed.
For God is without father and without mother having neither beginning of days of end of years. God never came by way of the seeds. His intelligence, which is greater than they all, is a complete compliment of what will be separated by the seeds into a selection of either male or female. Satan wanted to replace God and how could he do that if he were diminished into either male or female?
They wanted bodies the same way God got his body. However that would have worked? A lie no doubt. God would not have it. He knew man was his enemy from the beginning and thought it wise to divide so as to conquer. And seeds life invents families and families best organize humanity. So it was his will that we be added upon by the seeds.
Those who refused, in their hearts, to accept the sexual assignment, holding that it was repugnant to their arrogance, but went along with the program as if they could escape punishment or detection are found out in the physical world. Here their sexuality matures and since they rejected for an eternity the specter of sexual assignment and loathed learning to appreciate their respective assignment this world manifests that they can only be attracted to their own kind. Because a different sex is exactly what they had rejected in hypocrisy for two eternities as they went along with the plan afraid to rebel with the 1/3 hosts who did.
So it is nothing to do with biology or upbringing or masturbation, or pornography. Homosexuality is two eternities in the making. Hence it would require a miracle to undo in this life. HOWEVER. The gospel of Jesus Christ is powerful enough to heal. Too bad the LDS Church denies and defies the baptism of fire and of the Holy Ghost in preference to their most unfortunate imperceptible process which can never accomplish anything but arrogance.
Can a homosexual repent the natural man, as we all must, and seek to become a saint, conceived by the power of the atonement of Jesus Christ and be made perfect? With God, all things are possible to them that believe. I guess the LDS leadership lost the keys of knowledge in this regard. Big oops.