mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2025-10-16 12:05:38 +00:00
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:
parent
c25c175b47
commit
5effc56351
@ -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;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user