wp-includes/pluggable-deprecated.php:32Changes the current user by ID or name.
$idint|null$namestringoptional''WP_Userfunction set_current_user($id, $name = '') { _deprecated_function( __FUNCTION__, '3.0.0', 'wp_set_current_user()' ); return wp_set_current_user($id, $name);}Introduced in 2.0.1. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.
src/wp-includes/pluggable-deprecated.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.