Will o Wisp is a fire type move you know...
Any status moves hit through Wonder Guard.
That includes Toxic, Will o wisp etc.
Wonder Guard only affects attacking moves.
Just as it can get hit with Thunder wave and Toxic. Will o wisp also affects Shedninja. status afflictions are the only thing that an surpass Wonder guard effects