#58685 closed defect (bug) (fixed)
Fix return description for wp_count_posts()
| Reported by: | crstauf | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.3 |
| Component: | Posts, Post Types | Version: | |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs |
Description
If post type passed to wp_count_posts() does not exist, function returns an empty stdClass: adjust the @return description to indicate this.
Change History (6)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Update
@returndescription forwp_count_posts()to include returned value if post type is invalid.Trac ticket: https://core.trac.wordpress.org/ticket/58685