From 8eebc4d4ffc2ae6c5419667e9dfaee925aaa4077 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Fri, 15 Feb 2013 18:13:18 +0000 Subject: [PATCH] Use wp_get_current_user(). props nacin. see #23192. git-svn-id: https://develop.svn.wordpress.org/trunk@23432 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/ms-functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 ); }