What is the ruling on entering the toilet with something containing the remembrance of Allah?
It is disliked to bring into the toilet anything containing a reminder of Allah, such as the Quran or a sacred name (like the name of Allah, Muhammad, etc.). If one does that, etiquette dictates that he conceal it so it is not visible while entering the toilet, either by cupping his hands over it, putting it in his pocket, or inside his shirt if it is a necklace or ring. And Allah the Almighty knows best.
Does passing wind from the anus affect ritual purity?
Ablution is nullified by the passing of wind from the anus, but washing the anus is not required as wind leaves no impurity.
What is incumbent upon the one offering the sacrifice if, after slaughtering the animal, they discover that one of its internal organs is damaged or diseased?
All praise is due to Allah, and may peace and blessings be upon our Master, the Messenger of Allah.
The presence of disease or defect in the internal organs of a sheep does not affect the validity of the sacrificial animal, unless the disease leads to the animal becoming emaciated and its meat becoming corrupted.
It is stated in al-Iqnā' (2/590) by Imam al-Shirbīnī: "The third disqualifying condition: an animal with a manifest illness — meaning one whose illness visibly results in emaciation and corruption of its meat. However, if the illness is minor and does not produce such effects, it doesn`t affect the validity of the sacrificed animal." And Allah Almighty knows best.
Someone wiped over his shoes after wearing them in a state of purity, then took them off and prayed without them?
Ablution is not invalidated by taking off leather socks or shoes after wiping over them. However, whoever takes them off after wiping must wash his feet only. If he prayed without washing his feet, he must wash his feet and repeat the prayer. And Allah the Almighty knows best.