mirror of
git://develop.git.wordpress.org/
synced 2025-03-15 09:29:48 +01:00
More int casting, just to be safe.
git-svn-id: https://develop.svn.wordpress.org/branches/2.0@5037 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
08f4bc48bc
commit
a4a3e49a7f
@ -171,6 +171,7 @@ function user_pass_ok($user_login,$user_pass) {
|
||||
|
||||
function get_usernumposts($userid) {
|
||||
global $wpdb;
|
||||
$userid = (int) $userid;
|
||||
return $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = '$userid' AND post_status = 'publish'");
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user