Docs: Improve wording in a comment in `wp_set_current_user()`.
Props nielsdeblaauw. Fixes #45032. git-svn-id: https://develop.svn.wordpress.org/trunk@44826 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
2e6ce4195b
commit
56e7d96070
|
@ -26,7 +26,7 @@ if ( ! function_exists( 'wp_set_current_user' ) ) :
|
|||
function wp_set_current_user( $id, $name = '' ) {
|
||||
global $current_user;
|
||||
|
||||
// If `$id` matches the user who's already current, there's nothing to do.
|
||||
// If `$id` matches the current user, there is nothing to do.
|
||||
if ( isset( $current_user )
|
||||
&& ( $current_user instanceof WP_User )
|
||||
&& ( $id == $current_user->ID )
|
||||
|
|
Loading…
Reference in New Issue