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

props Caspie, tyxla.
fixes #30904.
Built from https://develop.svn.wordpress.org/trunk@31098


git-svn-id: http://core.svn.wordpress.org/trunk@31079 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2015-01-08 19:53:22 +00:00
parent ff4968ebc4
commit dfac056cf1
2 changed files with 2 additions and 2 deletions

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 );
}
/**

View File

@ -4,7 +4,7 @@
*
* @global string $wp_version
*/
$wp_version = '4.2-alpha-31097';
$wp_version = '4.2-alpha-31098';
/**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.