[wp-trac] [WordPress Trac] #38526: REST Multisite new user is not assigned to any site
WordPress Trac
noreply at wordpress.org
Tue Nov 8 17:02:45 UTC 2016
#38526: REST Multisite new user is not assigned to any site
--------------------------+-------------------------
Reporter: Compute | Owner: jeremyfelt
Type: defect (bug) | Status: assigned
Priority: normal | Milestone: 4.7
Component: REST API | Version: trunk
Severity: major | Resolution:
Keywords: needs-patch | Focuses: multisite
--------------------------+-------------------------
Comment (by jeremyfelt):
In [attachment:38526.diff]:
* In `create_item()`, when `is_multisite()`, fire `add_user_to_blog()`
with an empty string for role. This allows the existing logic to add any
passed roles.
* In `update_item()`, when `is_multisite()` and not a member of the site,
fire `add_user_to_blog()` with an empty string for role.
I have not added any tests yet. Is this an appropriate approach?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38526#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list