diff --git a/wp-includes/user.php b/wp-includes/user.php index c234c495df..b23e07e0ac 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -775,6 +775,19 @@ function delete_user_option( $user_id, $option_name, $is_global = false ) { return delete_user_meta( $user_id, $option_name ); } +/** + * Retrieves user info by user ID. + * + * @since 6.7 + * + * @param int $user_id User ID. + * + * @return WP_User|false WP_User object on success, false on failure. + */ +function get_user( $user_id ) { + return get_user_by( 'id', $user_id ); +} + /** * Retrieves list of users matching criteria. * diff --git a/wp-includes/version.php b/wp-includes/version.php index b7dc76e86d..ccb8e79c4a 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.7-alpha-59110'; +$wp_version = '6.7-alpha-59111'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.