Changeset 14090 for trunk/wp-includes/pluggable.php
- Timestamp:
- 04/14/2010 10:06:03 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable.php
r14070 r14090 6 6 * @package WordPress 7 7 */ 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.116 * @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 username20 * @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;26 8 27 9 if ( !function_exists('wp_set_current_user') ) :
Note: See TracChangeset
for help on using the changeset viewer.