From f4af743ea7da593889912cd36451baed5ca4d2fd Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 21 May 2022 12:07:13 +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. Built from https://develop.svn.wordpress.org/trunk@53428 git-svn-id: http://core.svn.wordpress.org/trunk@53017 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-post.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/class-wp-post.php b/wp-includes/class-wp-post.php index 654dd05bfa..fe059d00aa 100644 --- a/wp-includes/class-wp-post.php +++ b/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 { diff --git a/wp-includes/version.php b/wp-includes/version.php index bb435d01f4..db5e8fd4b5 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53427'; +$wp_version = '6.1-alpha-53428'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.