Even worse: SQLite, by default, does not immediately truncate WAL files, but rather overwrites the existing WAL from the beginning after successfully applying a checksum.
Doing what the author suggests would actually introduce data corruption errors when "restoring a WAL with a broken checksum".