Fix import_wordpress so it works with the changes in #665