Felix Arntz
7e2ca92e69
Multisite: Introduce a can_add_user_to_blog
filter to prevent adding a user to a site.
...
Under certain circumstances, it can be necessary that a user should not be added to a site, beyond the restrictions that WordPress core applies. With the new `can_add_user_to_blog` filter, plugin developers can run custom checks and return an error in case of a failure, that will prevent the user from being added.
The user-facing parts and the REST API route that interact with `add_user_to_blog()` have been adjusted accordingly to provide appropriate error feedback when a user could not be added to a site. Furthermore, two existing error feedback messages in the site admin's "New User" screen have been adjusted to properly show inside an error notice instead of a success notice.
Props jmdodd.
Fixes #41101 .
Built from https://develop.svn.wordpress.org/trunk@41225
git-svn-id: http://core.svn.wordpress.org/trunk@41065 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2017-08-03 21:41:45 +00:00
..
2017-07-16 01:15:46 +00:00
2017-07-27 00:41:44 +00:00
2017-07-31 19:50:45 +00:00
2017-08-02 17:16:44 +00:00
2016-12-13 02:48:41 +00:00
2017-08-03 21:41:45 +00:00
2017-08-01 04:43:51 +00:00
2017-07-26 16:45:44 +00:00
2016-12-13 01:49:39 +00:00
2017-06-26 18:24:40 +00:00
2016-12-14 04:18:42 +00:00
2017-07-27 00:41:44 +00:00
2017-07-05 09:19:43 +00:00
2017-07-04 19:59:40 +00:00
2017-08-03 16:13:44 +00:00
2017-01-29 11:50:41 +00:00
2016-12-03 03:30:42 +00:00
2017-08-03 15:24:44 +00:00
2017-07-27 00:41:44 +00:00
2017-01-11 01:23:41 +00:00
2017-01-11 01:23:41 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-08-03 14:34:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-08-02 05:35:41 +00:00
2017-08-02 05:35:41 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-08-02 05:35:41 +00:00
2017-07-27 00:41:44 +00:00
2017-07-25 22:58:41 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-01 16:58:42 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-08-03 14:34:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-08-03 14:34:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-08-01 20:44:43 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-07-27 00:41:44 +00:00
2017-08-03 14:59:44 +00:00
2017-07-01 13:36:41 +00:00
2017-07-28 01:15:52 +00:00
2017-06-30 04:54:41 +00:00
2017-07-27 00:41:44 +00:00
2017-03-23 19:01:42 +00:00
2017-07-27 15:10:42 +00:00
2017-06-24 00:00:45 +00:00
2017-08-03 14:46:43 +00:00
2017-07-16 01:15:46 +00:00
2016-12-16 06:39:41 +00:00
2016-12-16 06:39:41 +00:00
2016-12-16 06:39:41 +00:00
2016-12-16 06:42:40 +00:00
2017-01-05 03:06:42 +00:00
2017-07-20 13:38:44 +00:00
2017-08-01 14:38:48 +00:00
2017-07-23 01:06:42 +00:00
2017-06-25 22:06:41 +00:00
2017-06-25 22:16:40 +00:00
2017-06-25 06:41:41 +00:00
2017-07-14 23:01:42 +00:00
2017-07-01 22:13:41 +00:00
2016-12-03 04:16:38 +00:00
2017-05-11 21:11:44 +00:00
2017-08-02 16:45:44 +00:00
2017-05-10 06:10:43 +00:00
2017-08-01 20:44:43 +00:00
2017-05-09 17:15:43 +00:00
2017-08-01 20:44:43 +00:00
2017-08-03 21:41:45 +00:00
2017-07-05 21:31:44 +00:00
2017-06-30 04:49:40 +00:00
2017-07-06 15:12:44 +00:00
2017-08-03 13:21:46 +00:00
2017-06-13 01:11:43 +00:00
2017-07-12 22:21:41 +00:00
2017-07-27 08:19:43 +00:00
2017-07-25 00:50:43 +00:00
2016-11-09 23:00:32 +00:00
2017-08-02 16:45:44 +00:00
2016-12-03 03:51:41 +00:00
2017-07-11 00:54:41 +00:00
2017-07-28 01:15:52 +00:00
2017-07-30 15:10:44 +00:00
2017-06-29 16:05:41 +00:00
2017-08-03 15:43:43 +00:00
2017-05-06 14:30:40 +00:00
2017-08-02 20:43:44 +00:00
2017-06-15 12:05:42 +00:00
2017-08-03 21:41:45 +00:00
2017-06-24 00:00:45 +00:00
2017-07-27 00:41:44 +00:00