From 1a02e65df9525baa2f4133bb28a531e216dbb352 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Thu, 18 Nov 2021 16:04:00 +0000 Subject: [PATCH] Docs: Add missing `null` allowed type for the `$id` parameter of `wp_set_current_user()`. Props andy-schmidt. See #53399. Built from https://develop.svn.wordpress.org/trunk@52208 git-svn-id: http://core.svn.wordpress.org/trunk@51800 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/pluggable.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/pluggable.php b/wp-includes/pluggable.php index 9eae6214b3..95a2aafb0f 100644 --- a/wp-includes/pluggable.php +++ b/wp-includes/pluggable.php @@ -20,9 +20,9 @@ if ( ! function_exists( 'wp_set_current_user' ) ) : * * @global WP_User $current_user The current user object which holds the user data. * - * @param int $id User ID - * @param string $name User's username - * @return WP_User Current user User object + * @param int|null $id User ID. + * @param string $name User's username. + * @return WP_User Current user User object. */ function wp_set_current_user( $id, $name = '' ) { global $current_user; diff --git a/wp-includes/version.php b/wp-includes/version.php index 2870b6a33a..d715109544 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '5.9-alpha-52207'; +$wp_version = '5.9-alpha-52208'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.