From 7cb5d2e86985d8ced71b0a2c10bafee94b7c9108 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 21 May 2022 12:05:49 +0000 Subject: [PATCH] Docs: Correct the type for `WP_Post::$post_category` and `::$tags_input`. These properties are arrays of category IDs and tag names, respectively, not a single integer or string. Follow-up to [21651], [31127], [32729], [48941]. Props omaeyusuke. Fixes #55785. git-svn-id: https://develop.svn.wordpress.org/trunk@53428 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/class-wp-post.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/wp-includes/class-wp-post.php b/src/wp-includes/class-wp-post.php index 654dd05bfa..fe059d00aa 100644 --- a/src/wp-includes/class-wp-post.php +++ b/src/wp-includes/class-wp-post.php @@ -14,9 +14,9 @@ * * @property string $page_template * - * @property-read int[] $ancestors - * @property-read int $post_category - * @property-read string $tag_input + * @property-read int[] $ancestors + * @property-read int[] $post_category + * @property-read string[] $tags_input */ final class WP_Post {