WordPress.org

Make WordPress Core

Ticket #21640: 21640.diff

File 21640.diff, 542 bytes (added by willmot, 23 months ago)
  • wp-includes/user.php

    diff --git wp-includes/user.php wp-includes/user.php
    index d36bd33..e092155 100644
    function count_user_posts($userid) { 
    165165 * @since 3.0.0 
    166166 * 
    167167 * @param array $users Array of user IDs. 
    168  * @param string|array $post_type Optional. Post type to check. Defaults to post. 
     168 * @param string $post_type Optional. Post type to check. Defaults to post. 
    169169 * @return array Amount of posts each user has written. 
    170170 */ 
    171171function count_many_users_posts( $users, $post_type = 'post' ) {