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
This commit is contained in:
audrasjb 2021-11-18 16:04:00 +00:00
parent 4b322d9de3
commit 1a02e65df9
2 changed files with 4 additions and 4 deletions

View File

@ -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;

View File

@ -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.