Make WordPress Core


Ignore:
Timestamp:
01/28/2016 03:34:02 AM (9 years ago)
Author:
ericlewis
Message:

Networks and sites: Replace "blog" usage with "site" in docs.

Multisite functions use the term "blog" to refer to what we now call a "site," e.g. get_current_blog_id(). These functions are here to stay because of our commitment to backwards compatibility. What we can do is set the documentation straight.

See #35417.

File:
1 edited

Legend:

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

    r36111 r36416  
    23482348
    23492349/**
    2350  * Get users for the blog.
    2351  *
    2352  * For setups that use the multi-blog feature. Can be used outside of the
    2353  * multi-blog feature.
     2350 * Get users for the site.
     2351 *
     2352 * For setups that use the multisite feature. Can be used outside of the
     2353 * multisite feature.
    23542354 *
    23552355 * @since 2.2.0
     
    23582358 *
    23592359 * @global wpdb $wpdb    WordPress database abstraction object.
    2360  * @global int  $blog_id The Blog id of the blog for those that use more than one blog
    2361  *
    2362  * @param int $id Blog ID.
    2363  * @return array List of users that are part of that Blog ID
     2360 * @global int  $blog_id The site ID of the site for those that use more than one site.
     2361 *
     2362 * @param int $id Site ID.
     2363 * @return array List of users that are part of that site ID
    23642364 */
    23652365function get_users_of_blog( $id = '' ) {
     
    27942794
    27952795/**
    2796  * Checks if the current user belong to a given blog.
     2796 * Checks if the current user belong to a given site.
    27972797 *
    27982798 * @since MU
     
    28002800 * @see is_user_member_of_blog()
    28012801 *
    2802  * @param int $blog_id Blog ID
     2802 * @param int $blog_id Site ID
    28032803 * @return bool True if the current users belong to $blog_id, false if not.
    28042804 */
Note: See TracChangeset for help on using the changeset viewer.