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:
@@ -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 )
|
||||
|
||||
Reference in New Issue
Block a user