Not sure if Peter was married before meeting Christ. I assume so. But, this is besides the point.
As this foolish pope actually gets right, there’s no commandment against married priests. The idea behind the prohibition was that marriage/children would be too much of a time draw away from the vocation. Unfortunately, the consequence of this was it created a hive of gay/pedophilic activity. This is one of the biggest reasons why I support the reversal of this decision. There will be more straights on the inside to keep the gays in check.
Here's an easier answer: don't ordain homosexuals. If one slips through, never, ever raise him to the episcopate.
To those who complain that there wouldn't be enough priests ... get rid of irreverent NO Masses and preach and do serious Catholicism. Problem solved.