diff --git a/wp-includes/author-template.php b/wp-includes/author-template.php index 2280487d09..c795e1216a 100644 --- a/wp-includes/author-template.php +++ b/wp-includes/author-template.php @@ -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 ); } /** diff --git a/wp-includes/version.php b/wp-includes/version.php index 7d131fa767..089de9ec35 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -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.