diff --git a/wp-includes/ms-functions.php b/wp-includes/ms-functions.php index 22edb95a95..c31d64f398 100644 --- a/wp-includes/ms-functions.php +++ b/wp-includes/ms-functions.php @@ -1740,7 +1740,7 @@ function fix_phpmailer_messageid( $phpmailer ) { */ function is_user_spammy( $username = 0 ) { if ( $username == 0 ) { - $user = get_user_by( 'id', get_current_user_id() ); + $user = wp_get_current_user(); } else { $user = get_user_by( 'login', $username ); }