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.
Built from https://develop.svn.wordpress.org/trunk@49595


git-svn-id: http://core.svn.wordpress.org/trunk@49333 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Sergey Biryukov 2020-11-14 15:01:13 +00:00
parent 1260493569
commit ec051cfb3e
2 changed files with 3 additions and 3 deletions

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. * @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. * @type string|array $post_status A comma-separated list or array of post statuses to include.
* Default 'publish'. * 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() ) { function get_pages( $args = array() ) {
global $wpdb; global $wpdb;

View File

@ -13,7 +13,7 @@
* *
* @global string $wp_version * @global string $wp_version
*/ */
$wp_version = '5.6-beta4-49594'; $wp_version = '5.6-beta4-49595';
/** /**
* Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.