mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 21:00:21 +00:00
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:
@@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user