Make WordPress Core


Ignore:
File:
1 edited

Legend:

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

    r33620 r34118  
    262262 *
    263263 * @param int          $userid      User ID.
    264  * @param array|string $post_type   Optional. Post type(s) to count the number of posts for. Default 'post'.
     264 * @param array|string $post_type   Optional. Single post type or array of post types to count the number of posts for. Default 'post'.
    265265 * @param bool         $public_only Optional. Whether to only return counts for public posts. Default false.
    266266 * @return int Number of posts the user has written in this post type.
     
    278278     * @since 2.7.0
    279279     * @since 4.1.0 Added `$post_type` argument.
    280      * @since 4.3.0 Added `$public_only` argument.
     280     * @since 4.3.1 Added `$public_only` argument.
    281281     *
    282282     * @param int          $count       The user's post count.
    283283     * @param int          $userid      User ID.
    284      * @param string|array $post_types  Post types to count the number of posts for.
     284     * @param string|array $post_type   Single post type or array of post types to count the number of posts for.
    285285     * @param bool         $public_only Whether to limit counted posts to public posts.
    286286     */
    287     return apply_filters( 'get_usernumposts', $count, $userid, $post_type );
     287    return apply_filters( 'get_usernumposts', $count, $userid, $post_type, $public_only );
    288288}
    289289
     
    26202620    update_user_option( $user_id, 'default_password_nag', true, true ); //Set up the Password change nag.
    26212621
    2622     wp_new_user_notification( $user_id, 'both' );
     2622    wp_new_user_notification( $user_id, null, 'both' );
    26232623
    26242624    return $user_id;
Note: See TracChangeset for help on using the changeset viewer.