Changes from trunk/src/wp-includes/user.php at r33620 to branches/4.3/src/wp-includes/user.php at r34118
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3/src/wp-includes/user.php
r33620 r34118 262 262 * 263 263 * @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'. 265 265 * @param bool $public_only Optional. Whether to only return counts for public posts. Default false. 266 266 * @return int Number of posts the user has written in this post type. … … 278 278 * @since 2.7.0 279 279 * @since 4.1.0 Added `$post_type` argument. 280 * @since 4.3. 0Added `$public_only` argument.280 * @since 4.3.1 Added `$public_only` argument. 281 281 * 282 282 * @param int $count The user's post count. 283 283 * @param int $userid User ID. 284 * @param string|array $post_type s 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. 285 285 * @param bool $public_only Whether to limit counted posts to public posts. 286 286 */ 287 return apply_filters( 'get_usernumposts', $count, $userid, $post_type );287 return apply_filters( 'get_usernumposts', $count, $userid, $post_type, $public_only ); 288 288 } 289 289 … … 2620 2620 update_user_option( $user_id, 'default_password_nag', true, true ); //Set up the Password change nag. 2621 2621 2622 wp_new_user_notification( $user_id, 'both' );2622 wp_new_user_notification( $user_id, null, 'both' ); 2623 2623 2624 2624 return $user_id;
Note: See TracChangeset
for help on using the changeset viewer.