From 51fcbe01ba41b1e1f6da608d11f6e9506c6f1e20 Mon Sep 17 00:00:00 2001 From: Mark Jaquith Date: Wed, 14 Mar 2007 07:40:56 +0000 Subject: [PATCH] More int casting, just to be safe. git-svn-id: https://develop.svn.wordpress.org/trunk@5037 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/user.php | 1 + 1 file changed, 1 insertion(+) diff --git a/wp-includes/user.php b/wp-includes/user.php index bada06afdd..4618d523c8 100644 --- a/wp-includes/user.php +++ b/wp-includes/user.php @@ -9,6 +9,7 @@ function get_profile($field, $user = false) { function get_usernumposts($userid) { global $wpdb; + $userid = (int) $userid; return $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = '$userid' AND post_type = 'post' AND post_status = 'publish'"); }