[wp-trac] [WordPress Trac] #39544: REST API: Improve users endpoint in multisite

WordPress Trac noreply at wordpress.org
Wed Apr 12 22:47:39 UTC 2017


#39544: REST API: Improve users endpoint in multisite
----------------------------+-----------------------------
 Reporter:  flixos90        |       Owner:
     Type:  task (blessed)  |      Status:  new
 Priority:  normal          |   Milestone:  Future Release
Component:  REST API        |     Version:
 Severity:  normal          |  Resolution:
 Keywords:  2nd-opinion     |     Focuses:  multisite
----------------------------+-----------------------------

Comment (by flixos90):

 @jnylen0 I generally agree to all points you make.

 Only regarding `POST wp/v2/users?global=true` I don't think we need
 something like `add_to_site` there. Calling `POST wp/v2/users` already
 creates a new user and adds them to the current site, so that that use-
 case is covered.
 And since the `global` parameter should indicate a global operation, I
 think it's sufficient to only create the user under that circumstances.
 Adding a user to a site is an operation in the site context, so I think it
 should not happen when passing `global`.

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


More information about the wp-trac mailing list