#55785 closed defect (bug) (fixed)
Docs: Wrong `@property-read` notation type in `WP_Post`.
| Reported by: | omaeyusuke | Owned by: | SergeyBiryukov |
|---|---|---|---|
| Priority: | normal | Milestone: | 6.1 |
| Component: | Posts, Post Types | Version: | 4.2 |
| Severity: | normal | Keywords: | has-patch |
| Cc: | Focuses: | docs |
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.
4 years ago
#1
- Keywords has-patch added
SergeyBiryukov commented on PR #2737:
4 years ago
#4
Thanks for the PR! Merged in https://core.trac.wordpress.org/changeset/53428.
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
fix type and name for
@property-read.Trac ticket: #55785