Make WordPress Core


Ignore:
Timestamp:
04/14/2010 10:06:03 PM (14 years ago)
Author:
nacin
Message:

Deprecate set_current_user() in favor of wp_set_current_user().

File:
1 edited

Legend:

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

    r14070 r14090  
    66 * @package WordPress
    77 */
    8 
    9 if ( !function_exists('set_current_user') ) :
    10 /**
    11  * Changes the current user by ID or name.
    12  *
    13  * Set $id to null and specify a name if you do not know a user's ID.
    14  *
    15  * @since 2.0.1
    16  * @see wp_set_current_user() An alias of wp_set_current_user()
    17  *
    18  * @param int|null $id User ID.
    19  * @param string $name Optional. The user's username
    20  * @return object returns wp_set_current_user()
    21  */
    22 function set_current_user($id, $name = '') {
    23     return wp_set_current_user($id, $name);
    24 }
    25 endif;
    268
    279if ( !function_exists('wp_set_current_user') ) :
Note: See TracChangeset for help on using the changeset viewer.