Make WordPress Core

Changeset 47174


Ignore:
Timestamp:
02/04/2020 07:38:12 PM (5 years ago)
Author:
SergeyBiryukov
Message:

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

See #48303.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/ms-functions.php

    r47173 r47174  
    138138 *
    139139 * @param int $blog_id ID of the blog.
    140  * @param int $post_id ID of the post you're looking for.
     140 * @param int $post_id ID of the post being looked for.
    141141 * @return WP_Post|null WP_Post on success or null on failure
    142142 */
     
    156156 * @since MU (3.0.0)
    157157 *
    158  * @param int    $blog_id ID of the blog you're adding the user to.
    159  * @param int    $user_id ID of the user you're adding.
     158 * @param int    $blog_id ID of the blog the user is being added to.
     159 * @param int    $user_id ID of the user being added.
    160160 * @param string $role    The role you want the user to have
    161161 * @return true|WP_Error True on success or a WP_Error object if the user doesn't exist
     
    235235 * @global wpdb $wpdb WordPress database abstraction object.
    236236 *
    237  * @param int $user_id  ID of the user you're removing.
    238  * @param int $blog_id  Optional. ID of the blog you're removing the user from. Default 0.
     237 * @param int $user_id  ID of the user being removed.
     238 * @param int $blog_id  Optional. ID of the blog the user is being removed from. Default 0.
    239239 * @param int $reassign Optional. ID of the user to whom to reassign posts. Default 0.
    240240 * @return true|WP_Error True on success or a WP_Error object if the user doesn't exist.
Note: See TracChangeset for help on using the changeset viewer.