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
This commit is contained in:
Sergey Biryukov 2020-11-14 15:00:00 +00:00
parent 4da40cd5f0
commit 637a3e8b5d

View File

@ -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;