use wordpress errors correctly