I am a muslim, and I looked into this at length. There are 2 parts to this, first of all, if diapers to you are sexual, then i believe it is an absolute no while you are praying. If they are completely nonsexual, then they are simply a choice of garments, there is nothing wrong with that.