WordPress.org

Make WordPress Core

Changeset 36085


Ignore:
Timestamp:
12/25/15 20:17:55 (14 months ago)
Author:
SergeyBiryukov
Message:

Docs: Correct @return type for count_user_posts().

Props nofearinc.
Fixes #35222.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/user.php

    r36084 r36085  
    279279 * @param array|string $post_type   Optional. Single post type or array of post types to count the number of posts for. Default 'post'. 
    280280 * @param bool         $public_only Optional. Whether to only return counts for public posts. Default false. 
    281  * @return int Number of posts the user has written in this post type. 
     281 * @return string Number of posts the user has written in this post type. 
    282282 */ 
    283283function count_user_posts( $userid, $post_type = 'post', $public_only = false ) { 
Note: See TracChangeset for help on using the changeset viewer.