From da43de528f6b4e7c7a876789b271b4f3b4db7624 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Wed, 22 Jul 2020 11:37:02 +0000 Subject: [PATCH] Docs: Correct type and improve description for the `$fields` parameter of `WP_Query::parse_query()`. Props ocean90, palmiak, johannadevos, noisysocks. Fixes #44305. Built from https://develop.svn.wordpress.org/trunk@48563 git-svn-id: http://core.svn.wordpress.org/trunk@48325 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/class-wp-query.php | 9 ++++++--- wp-includes/version.php | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/wp-includes/class-wp-query.php b/wp-includes/class-wp-query.php index d339285506..7054cd0350 100644 --- a/wp-includes/class-wp-query.php +++ b/wp-includes/class-wp-query.php @@ -649,9 +649,12 @@ class WP_Query { * See WP_Date_Query::__construct(). * @type int $day Day of the month. Default empty. Accepts numbers 1-31. * @type bool $exact Whether to search by exact keyword. Default false. - * @type string|array $fields Which fields to return. Single field or all fields (string), - * or array of fields. 'id=>parent' uses 'id' and 'post_parent'. - * Default all fields. Accepts 'ids', 'id=>parent'. + * @type string $fields Post fields to query for. Accepts: + * - '' Returns an array of complete post objects (`WP_Post[]`). + * - 'ids' Returns an array of post IDs (`int[]`). + * - 'id=>parent' Returns an associative array of parent post IDs, + * keyed by post ID (`int[]`). + * Default ''. * @type int $hour Hour of the day. Default empty. Accepts numbers 0-23. * @type int|bool $ignore_sticky_posts Whether to ignore sticky posts or not. Setting this to false * excludes stickies from 'post__in'. Accepts 1|true, 0|false. diff --git a/wp-includes/version.php b/wp-includes/version.php index 473c57604c..dfd635b8ae 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.5-beta3-48562'; +$wp_version = '5.5-beta3-48563'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.