Make WordPress Core


Ignore:
Timestamp:
10/19/2011 10:35:15 PM (13 years ago)
Author:
ryan
Message:

Turn is_blog_user() into a wrapper around is_user_member_of_blog() and deprecate. Make user_id optional for is_user_member_of_blog(). Props SergeyBiryukov. fixes #16702

File:
1 edited

Legend:

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

    r18907 r19016  
    28712871    }
    28722872}
     2873
     2874/**
     2875 * Checks if the current user belong to a given blog.
     2876 *
     2877 * @since MU
     2878 * @deprecated 3.3
     2879 * @deprecated Use is_user_member_of_blog()
     2880 * @see is_user_member_of_blog()
     2881 *
     2882 * @param int $blog_id Blog ID
     2883 * @return bool True if the current users belong to $blog_id, false if not.
     2884 */
     2885function is_blog_user( $blog_id = 0 ) {
     2886    _deprecated_function( __FUNCTION__, '3.3', 'is_user_member_of_blog()' );
     2887
     2888    return is_user_member_of_blog( get_current_user_id(), $blog_id );
     2889}
Note: See TracChangeset for help on using the changeset viewer.