From 6ec9c9c44679b457bd18cb916c157ede8e5d9d3c Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Mon, 25 May 2020 14:21:50 +0000 Subject: [PATCH] Docs: Improve documentation for `add_existing_user_to_blog()`. Props stevenlinx. Fixes #50243. git-svn-id: https://develop.svn.wordpress.org/trunk@47854 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/ms-functions.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/wp-includes/ms-functions.php b/src/wp-includes/ms-functions.php index bcdf5bcefc..04fba60faa 100644 --- a/src/wp-includes/ms-functions.php +++ b/src/wp-includes/ms-functions.php @@ -2162,7 +2162,12 @@ function maybe_add_existing_user_to_blog() { * * @since MU (3.0.0) * - * @param array $details User details. + * @param array $details { + * User details. Must at least contain values for the keys listed below. + * + * @type int $user_id The ID of the user being added to the current blog. + * @type string $role The role to be assigned to the user. + * } * @return true|WP_Error|void True on success or a WP_Error object if the user doesn't exist * or could not be added. Void if $details array was not provided. */