You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@mukeshpanchal27 To confirm: I think the problem here is that the new admin user in the SQLite DB will have the wrong email address. That's because the code right now always passes the current admin_email email address to wp_install(), which wp_install() then automatically uses for the initial user account as well.
However, if we just change that parameter, it would mean that the user will have the correct email, but the admin_email would be wrong.
So I think what we need to do is first pass the user's email to wp_install(), but then afterwards modify the admin_email option to restore the original admin_email address (not attached to any user since that user was deleted).
Activity
felixarntz commentedon Dec 14, 2022
@mukeshpanchal27 To confirm: I think the problem here is that the new admin user in the SQLite DB will have the wrong email address. That's because the code right now always passes the current
admin_emailemail address towp_install(), whichwp_install()then automatically uses for the initial user account as well.However, if we just change that parameter, it would mean that the user will have the correct email, but the
admin_emailwould be wrong.So I think what we need to do is first pass the user's email to
wp_install(), but then afterwards modify theadmin_emailoption to restore the originaladmin_emailaddress (not attached to any user since that user was deleted).