Problems after wp_set_password() containing an apostrophe
The resolution is pretty simply. Those functions require the passwords to be properly escaped. So Instead of this: wp_set_password(‘Test”123’, $userId); You have to do this: wp_set_password(wp_slash(‘Test”123’), $userId); The same goes for wp_update_user() and wp_signon(). Further information and updates on the docs may be visible from this bug report: https://core.trac.wordpress.org/ticket/34297#ticket