#55785 closed defect (bug) (fixed)
Docs: Wrong `@property-read` notation type in `WP_Post`.
Reported by: | omaeyusuke | Owned by: | SergeyBiryukov |
---|---|---|---|
Milestone: | 6.1 | Priority: | normal |
Severity: | normal | Version: | 4.2 |
Component: | Posts, Post Types | Keywords: | has-patch |
Focuses: | docs | Cc: |
Description
https://core.trac.wordpress.org/browser/tags/5.9.3/src/wp-includes/class-wp-post.php#L18
The type correct one for $post->post_category
is int[]
.
Also, $post->tag_input
is a typo for $post->tags_input
and the correct type is string[]
.
Change History (4)
This ticket was mentioned in PR #2737 on WordPress/wordpress-develop by yusuke-omae.
3 years ago
#1
- Keywords has-patch added
#3
@
3 years ago
- Owner set to SergeyBiryukov
- Resolution set to fixed
- Status changed from new to closed
In 53428:
SergeyBiryukov commented on PR #2737:
3 years ago
#4
Thanks for the PR! Merged in https://core.trac.wordpress.org/changeset/53428.
Note: See
TracTickets for help on using
tickets.
fix type and name for
@property-read
.Trac ticket: #55785