Bah. I got hacked. I think it was probably due to a couple of files being world writeable (i.e. index.php and a style file) mainly due to my laziness in editing them in the wordpress editor. I won’t be doing that again. Of course, I may get hacked again, in which case it must be something else.
Fortunately, I’d backed up stuff so I could restore it fairly trivially.