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:
parent
9e67a186a5
commit
931f8046d3
|
@ -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 )
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
*
|
||||
* @global string $wp_version
|
||||
*/
|
||||
$wp_version = '5.2-alpha-44825';
|
||||
$wp_version = '5.2-alpha-44826';
|
||||
|
||||
/**
|
||||
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
|
||||
|
|
Loading…
Reference in New Issue