Changeset 15566 for trunk/wp-includes/capabilities.php
- Timestamp:
- 09/05/2010 02:35:55 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/capabilities.php
r15561 r15566 472 472 * @param int|string $id User's ID or username 473 473 * @param int $name Optional. User's username 474 * @param int $blog_id Optional Blog ID, defaults to current blog. 474 475 * @return WP_User 475 476 */ 476 function WP_User( $id, $name = '' ) {477 function WP_User( $id, $name = '', $blog_id = '' ) { 477 478 478 479 if ( empty( $id ) && empty( $name ) ) … … 497 498 498 499 $this->id = $this->ID; 499 $this-> _init_caps();500 $this->for_blog( $blog_id ); 500 501 } 501 502
Note: See TracChangeset
for help on using the changeset viewer.