What does the phrase "put his foot in it" mean in the sentence "Mary and Joe had such a row that the whole street must have been able to hear it. Apparently, Joe had put his foot in it by referring to her by his first wife’s name."?
say something (by mistake) that upsets, humiliates, or embarrasses someone / to accidentally do or say something that you later regret