The WoW was not fully enforced until relatively recently, namely 1930. In 1930, it was decided that ot be temple worthy, the WoW had to be complied with, and it is very specific that the BIG FOUR, namely, Alcohol, Tobacco, Coffee and Tea were the absolute prohibitions. That continuing revelation stuff. That's what we live by today, and is required of us.
It is a well known fact that many church leaders did not obey the WoW by those standards prior to 1930, and coffee drinking was extremely common in the church prior to that time.
The winter home of Brigham Young in St George Utah is full of wine decanters used by the prophet himself, as an example of the above.