Pass post type to count_user_posts() in get_the_author_posts().

props Caspie, tyxla.
fixes #30904.

git-svn-id: https://develop.svn.wordpress.org/trunk@31098 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Sergey Biryukov
2015-01-08 19:52:52 +00:00
parent d5b99d560e
commit 907be55276
2 changed files with 18 additions and 1 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ function get_the_author_posts() {
if ( ! $post ) {
return 0;
}
return count_user_posts( $post->post_author );
return count_user_posts( $post->post_author, $post->post_type );
}
/**