From 637a3e8b5dfad3e30fdbe38a2547cdbe8eb5499e Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Sat, 14 Nov 2020 15:00:00 +0000 Subject: [PATCH] Docs: Clarify that `get_pages()` returns an array of pages, not an HTML list. Props ben.meredith@gmail.com, ovenall, johannadevos. Fixes #39049. See #51768. git-svn-id: https://develop.svn.wordpress.org/trunk@49595 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php index 874d219684..2e1afdbf4a 100644 --- a/src/wp-includes/post.php +++ b/src/wp-includes/post.php @@ -5463,7 +5463,7 @@ function get_page_uri( $page = 0 ) { } /** - * Retrieve a list of pages (or hierarchical post type items). + * Retrieve an array of pages (or hierarchical post type items). * * @global wpdb $wpdb WordPress database abstraction object. * @@ -5502,7 +5502,7 @@ 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 array|false List of pages matching defaults or `$args`. + * @return array|false Array of pages matching defaults or `$args`. */ function get_pages( $args = array() ) { global $wpdb;