Changeset 5037
- Timestamp:
- 03/14/2007 07:40:56 AM (18 years ago)
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
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 }
Note: See TracChangeset
for help on using the changeset viewer.