mirror of
git://develop.git.wordpress.org/
synced 2025-03-22 13:00:29 +01: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…
x
Reference in New Issue
Block a user