Changeset 5037
- Timestamp:
- 03/14/07 07:40:56 (1 year ago)
- Files:
-
- branches/2.0/wp-includes/functions.php (modified) (1 diff)
- branches/2.1/wp-includes/user.php (modified) (1 diff)
- trunk/wp-includes/user.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/2.0/wp-includes/functions.php
r5022 r5037 172 172 function get_usernumposts($userid) { 173 173 global $wpdb; 174 $userid = (int) $userid; 174 175 return $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = '$userid' AND post_status = 'publish'"); 175 176 } branches/2.1/wp-includes/user.php
r4582 r5037 10 10 function get_usernumposts($userid) { 11 11 global $wpdb; 12 $userid = (int) $userid; 12 13 return $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = '$userid' AND post_type = 'post' AND post_status = 'publish'"); 13 14 } trunk/wp-includes/user.php
r4862 r5037 10 10 function get_usernumposts($userid) { 11 11 global $wpdb; 12 $userid = (int) $userid; 12 13 return $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->posts WHERE post_author = '$userid' AND post_type = 'post' AND post_status = 'publish'"); 13 14 }
