| 1 | 209c209 |
|---|
| 2 | < function count_user_posts($userid) { |
|---|
| 3 | --- |
|---|
| 4 | > function count_user_posts( $userid, $post_type = 'post' ) { |
|---|
| 5 | 212c212 |
|---|
| 6 | < $where = get_posts_by_author_sql('post', true, $userid); |
|---|
| 7 | --- |
|---|
| 8 | > $where = get_posts_by_author_sql( $post_type, true, $userid); |
|---|