Make WordPress Core

Ticket #30904: 30904.diff

File 30904.diff, 398 bytes (added by Caspie, 9 years ago)

pass post type

  • wp-includes/author-template.php

     
    197197        if ( ! $post ) {
    198198                return 0;
    199199        }
    200         return count_user_posts( $post->post_author );
     200        return count_user_posts( $post->post_author, $post->post_type );
    201201}
    202202
    203203/**