#58685 closed defect (bug) (fixed)
Fix return description for wp_count_posts()
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 6.3 | Priority: | normal |
| Severity: | normal | Version: | |
| Component: | Posts, Post Types | Keywords: | has-patch |
| Focuses: | docs | Cc: |
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)
This ticket was mentioned in PR #4769 on WordPress/wordpress-develop by @crstauf.
3 years ago
#1
- Keywords has-patch added
#4
@
3 years ago
- Component changed from General to Posts, Post Types
- Milestone changed from Awaiting Review to 6.3
#5
@
3 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 56120:
@SergeyBiryukov commented on PR #4769:
3 years ago
#6
Thanks for the PR! Merged in r56120.
Note: See
TracTickets for help on using
tickets.
Update
@returndescription forwp_count_posts()to include returned value if post type is invalid.Trac ticket: https://core.trac.wordpress.org/ticket/58685