Opened 10 years ago
Closed 10 years ago
#30904 closed defect (bug) (fixed)
Pass post type to count_user_posts() in get_the_author_posts();
Reported by: | Caspie | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | 4.1 |
Component: | Posts, Post Types | Keywords: | has-patch |
Focuses: | template | Cc: |
Description
Prevents possible wrong posts count, return when no post type is passed - the default "post" is used. Related to the enhancement in #21364
Attachments (2)
Change History (7)
#2
@
10 years ago
For cases when get_the_author_posts() is called and the current post is of a custom post type.
#3
@
10 years ago
- Keywords needs-unit-tests added; needs-testing removed
- Milestone changed from Awaiting Review to 4.2
Note: See
TracTickets for help on using
tickets.
pass post type