From 36d32c05042b3183e77d2bcb7d9cc7fd3e4f20d2 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: http://core.svn.wordpress.org/trunk@23432 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- 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 ); }