Docs: Add missing null allowed type for the $id parameter of wp_set_current_user().

Props andy-schmidt.
See #53399.


git-svn-id: https://develop.svn.wordpress.org/trunk@52208 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Jb Audras 2021-11-18 16:02:41 +00:00
parent c25c175b47
commit 5effc56351

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;