Opened 12 years ago
Closed 12 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 |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.2 |
| Component: | Posts, Post Types | Version: | 4.1 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | template |
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
@
12 years ago
For cases when get_the_author_posts() is called and the current post is of a custom post type.
#3
@
12 years ago
- Keywords needs-unit-tests added; needs-testing removed
- Milestone Awaiting Review → 4.2
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
pass post type