From dfac056cf121c4ceea95a400550ae07a10ebd4b9 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Thu, 8 Jan 2015 19:53:22 +0000 Subject: [PATCH] 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 --- wp-includes/author-template.php | 2 +- wp-includes/version.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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.