From 301ac6bf3823e0b13a1e90cd8345e66b165589d9 Mon Sep 17 00:00:00 2001 From: audrasjb Date: Fri, 5 Aug 2022 05:46:10 +0000 Subject: [PATCH] Docs: Provide a more accurate `@return` type for `get_pages()` function. Props malthert, audrasjb, johnbillion, jigar-bhanushali. Fixes #56330. See #55646. Built from https://develop.svn.wordpress.org/trunk@53837 git-svn-id: http://core.svn.wordpress.org/trunk@53396 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/post.php | 6 +++--- wp-includes/version.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index d8f21403ca..48122ffbfb 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -5971,9 +5971,9 @@ function get_page_uri( $page = 0 ) { * @type string|array $post_status A comma-separated list or array of post statuses to include. * Default 'publish'. * } - * @return WP_Post[]|int[]|false Array of pages (or hierarchical post type items). Boolean false if the - * specified post type is not hierarchical or the specified status is not - * supported by the post type. + * @return WP_Post[]|false Array of pages (or hierarchical post type items). Boolean false if the + * specified post type is not hierarchical or the specified status is not + * supported by the post type. */ function get_pages( $args = array() ) { global $wpdb; diff --git a/wp-includes/version.php b/wp-includes/version.php index 0cbb383d5c..6f3c67597d 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -16,7 +16,7 @@ * * @global string $wp_version */ -$wp_version = '6.1-alpha-53836'; +$wp_version = '6.1-alpha-53837'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.