Docs: Improve description for `add_user_to_blog()` and `remove_user_from_blog()` parameters.

See #48303.
Built from https://develop.svn.wordpress.org/trunk@47174


git-svn-id: http://core.svn.wordpress.org/trunk@46974 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-02-04 19:40:06 +00:00
parent be057c4a1c
commit 761644c636
2 changed files with 6 additions and 6 deletions

View File

@ -137,7 +137,7 @@ function get_blog_count( $network_id = null ) {
* @since MU (3.0.0) * @since MU (3.0.0)
* *
* @param int $blog_id ID of the blog. * @param int $blog_id ID of the blog.
* @param int $post_id ID of the post you're looking for. * @param int $post_id ID of the post being looked for.
* @return WP_Post|null WP_Post on success or null on failure * @return WP_Post|null WP_Post on success or null on failure
*/ */
function get_blog_post( $blog_id, $post_id ) { function get_blog_post( $blog_id, $post_id ) {
@ -155,8 +155,8 @@ function get_blog_post( $blog_id, $post_id ) {
* *
* @since MU (3.0.0) * @since MU (3.0.0)
* *
* @param int $blog_id ID of the blog you're adding the user to. * @param int $blog_id ID of the blog the user is being added to.
* @param int $user_id ID of the user you're adding. * @param int $user_id ID of the user being added.
* @param string $role The role you want the user to have * @param string $role The role you want the user to have
* @return true|WP_Error True on success or a WP_Error object if the user doesn't exist * @return true|WP_Error True on success or a WP_Error object if the user doesn't exist
* or could not be added. * or could not be added.
@ -234,8 +234,8 @@ function add_user_to_blog( $blog_id, $user_id, $role ) {
* *
* @global wpdb $wpdb WordPress database abstraction object. * @global wpdb $wpdb WordPress database abstraction object.
* *
* @param int $user_id ID of the user you're removing. * @param int $user_id ID of the user being removed.
* @param int $blog_id Optional. ID of the blog you're removing the user from. Default 0. * @param int $blog_id Optional. ID of the blog the user is being removed from. Default 0.
* @param int $reassign Optional. ID of the user to whom to reassign posts. Default 0. * @param int $reassign Optional. ID of the user to whom to reassign posts. Default 0.
* @return true|WP_Error True on success or a WP_Error object if the user doesn't exist. * @return true|WP_Error True on success or a WP_Error object if the user doesn't exist.
*/ */

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.4-alpha-47173'; $wp_version = '5.4-alpha-47174';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.