Make WordPress Core


Ignore:
Timestamp:
09/05/2010 02:35:55 PM (14 years ago)
Author:
scribu
Message:

call get_users() from get_users_of_blog()

File:
1 edited

Legend:

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

    r15561 r15566  
    472472     * @param int|string $id User's ID or username
    473473     * @param int $name Optional. User's username
     474     * @param int $blog_id Optional Blog ID, defaults to current blog.
    474475     * @return WP_User
    475476     */
    476     function WP_User( $id, $name = '' ) {
     477    function WP_User( $id, $name = '', $blog_id = '' ) {
    477478
    478479        if ( empty( $id ) && empty( $name ) )
     
    497498
    498499        $this->id = $this->ID;
    499         $this->_init_caps();
     500        $this->for_blog( $blog_id );
    500501    }
    501502
Note: See TracChangeset for help on using the changeset viewer.