[wp-trac] [WordPress Trac] #15627: wp_insert_user should not assume a default role
WordPress Trac
noreply at wordpress.org
Thu Oct 31 14:56:15 UTC 2019
#15627: wp_insert_user should not assume a default role
-------------------------------------------------+-------------------------
Reporter: nickmomrik | Owner: westi
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Future
| Release
Component: Users | Version: 3.1
Severity: normal | Resolution:
Keywords: needs-patch close reporter-feedback | Focuses:
-------------------------------------------------+-------------------------
Changes (by desrosj):
* keywords: has-patch close => needs-patch close reporter-feedback
* milestone: => Future Release
Comment:
Is anyone able to reproduce the issue that was originally reported here? I
have tried:
- Creating a user from the `Network > Edit Site > Users` screen.
- Creating a user from the `Network > Users > Add New` screen.
- Creating a user from the `Primary Site > Users > Add New` screen.
- Creating a user from the `Non Primary Site > Users > Add New` screen.
I have been unable to get the created user added to the main blog at all.
Not sure if this has been fixed with changes elsewhere, or if I am not
taking the correct steps.
As far as I can tell, the default role will always be determined within
the context of the current site when calling `wp_insert_user()`.
Marking for `close` consideration until someone is able to reproduce the
original issue.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/15627#comment:14>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list