Changeset 33953
- Timestamp:
- 09/08/2015 08:57:31 PM (9 years ago)
- Location:
- branches/4.3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/4.3
- Property svn:mergeinfo changed
/trunk merged: 33710,33716
- Property svn:mergeinfo changed
-
branches/4.3/src/wp-includes/user.php
r33620 r33953 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
Note: See TracChangeset
for help on using the changeset viewer.