[wp-trac] [WordPress Trac] #55785: Docs: Wrong `@property-read` notation type in `WP_Post`.

WordPress Trac noreply at wordpress.org
Sat May 21 01:53:13 UTC 2022


#55785: Docs: Wrong `@property-read` notation type in `WP_Post`.
-------------------------------+-----------------------------
 Reporter:  omaeyusuke         |      Owner:  (none)
     Type:  defect (bug)       |     Status:  new
 Priority:  normal             |  Milestone:  Awaiting Review
Component:  Posts, Post Types  |    Version:  5.9.3
 Severity:  normal             |   Keywords:
  Focuses:  docs               |
-------------------------------+-----------------------------
 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[]`.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/55785>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list