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:
Sergey Biryukov 2019-03-11 10:56:39 +00:00
parent 2e6ce4195b
commit 56e7d96070
1 changed files with 1 additions and 1 deletions

View File

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