Don't assume wp_ is the prefix

Fixes #2306