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