mirror of
https://github.com/WordPress/WordPress.git
synced 2025-03-09 07:00:01 +00:00
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:
parent
ff4968ebc4
commit
dfac056cf1
@ -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 );
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user