Changeset 14090
- Timestamp:
- 04/14/2010 10:06:03 PM (13 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/pluggable-deprecated.php
r13255 r14090 15 15 * Deprecated functions come here to die. 16 16 */ 17 18 if ( !function_exists('set_current_user') ) : 19 /** 20 * Changes the current user by ID or name. 21 * 22 * Set $id to null and specify a name if you do not know a user's ID. 23 * 24 * @since 2.0.1 25 * @see wp_set_current_user() An alias of wp_set_current_user() 26 * @deprecated 3.0.0 27 * @deprecated Use wp_set_current_user() 28 * 29 * @param int|null $id User ID. 30 * @param string $name Optional. The user's username 31 * @return object returns wp_set_current_user() 32 */ 33 function set_current_user($id, $name = '') { 34 _deprecated_function( __FUNCTION__, '3.0', 'wp_set_current_user()' ); 35 return wp_set_current_user($id, $name); 36 } 37 endif; 17 38 18 39 if ( !function_exists('wp_setcookie') ) : -
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') ) : -
trunk/wp-includes/user.php
r13827 r14090 479 479 * Set up global user vars. 480 480 * 481 * Used by set_current_user() for back compat. Might be deprecated in the 482 * future. 481 * Used by wp_set_current_user() for back compat. Might be deprecated in the future. 483 482 * 484 483 * @since 2.0.4 -
trunk/xmlrpc.php
r13725 r14090 280 280 } 281 281 282 set_current_user( $user->ID );282 wp_set_current_user( $user->ID ); 283 283 return $user; 284 284 }
Note: See TracChangeset
for help on using the changeset viewer.