WordPress.org

Make WordPress Core

Opened 11 months ago

Last modified 11 months ago

#21364 new enhancement

Pass post type to count_user_posts()

Reported by: Caspie Owned by:
Priority: normal Milestone: Awaiting Review
Component: General Version: 3.0
Severity: normal Keywords: has-patch needs-testing
Cc:

Description

Add $post_type argument to count_user_posts(). Defaults to 'post', as it is hard-coded now.

Attachments (2)

21364.diff (886 bytes) - added by Caspie 11 months ago.
patch
21364.2.diff (898 bytes) - added by Caspie 11 months ago.
also pass to filter

Download all attachments as: .zip

Change History (4)

Caspie11 months ago

patch

comment:1 follow-up: kawauso11 months ago

If we're doing that, should it be passed to the filter as well?

Caspie11 months ago

also pass to filter

comment:2 in reply to: ↑ 1 Caspie11 months ago

Replying to kawauso:

If we're doing that, should it be passed to the filter as well?

sure

Note: See TracTickets for help on using tickets.