[wp-trac] [WordPress Trac] #38526: REST Multisite new user is not assigned to any site

WordPress Trac noreply at wordpress.org
Mon Nov 7 23:26:01 UTC 2016


#38526: REST Multisite new user is not assigned to any site
--------------------------+------------------------
 Reporter:  Compute       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  4.7
Component:  REST API      |     Version:
 Severity:  major         |  Resolution:
 Keywords:  needs-patch   |     Focuses:  multisite
--------------------------+------------------------

Comment (by jeremyfelt):

 Agreed. I had first thought that it would be confusing to provide
 `add_user_to_blog()` in `create_item()`, but after looking closer at
 `delete_item()`, the user is only removed from a site (via
 `wp_delete_user()` and not deleted from the network. It probably makes
 sense to align the expected behaviors here.

 The harder part will be figuring out (in 4.x) the right endpoint to assign
 existing network users to individual sites. Right now if you use
 `create_item()` on an existing username, `wpmu_validate_user_signup()`
 will kick back an error.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38526#comment:4>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list