WordPress.org

Make WordPress Core

Ticket #35222: 35222.diff

File 35222.diff, 749 bytes (added by nofearinc, 5 years ago)
  • wp-includes/user.php

    diff --git wp-includes/user.php wp-includes/user.php
    index d62e5e7..e00c7ed 100644
    function wp_validate_logged_in_cookie( $user_id ) { 
    278278 * @param int          $userid      User ID.
    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 ) {
    284284        global $wpdb;