Panella published the song in 1915, but the familiar "ain't what she used to be" lines don't appear anywhere one can find until the 1917 edition.
The tune was popular during the Civil War. Panella's words (whether he originated them or not) were frequently sung on the march during World War I.