Docs: Improve wording in a comment in wp_set_current_user().

Props nielsdeblaauw.
Fixes #45032.
Built from https://develop.svn.wordpress.org/trunk@44826


git-svn-id: http://core.svn.wordpress.org/trunk@44658 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov
2019-03-11 10:57:55 +00:00
parent 9e67a186a5
commit 931f8046d3
2 changed files with 2 additions and 2 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 )