WordPress.org

Make WordPress Core

Changeset 49595


Ignore:
Timestamp:
11/14/2020 03:00:00 PM (2 weeks ago)
Author:
SergeyBiryukov
Message:

Docs: Clarify that get_pages() returns an array of pages, not an HTML list.

Props ben.meredith@…, ovenall, johannadevos.
Fixes #39049. See #51768.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-includes/post.php

    r49544 r49595  
    54645464
    54655465/**
    5466  * Retrieve a list of pages (or hierarchical post type items).
     5466 * Retrieve an array of pages (or hierarchical post type items).
    54675467 *
    54685468 * @global wpdb $wpdb WordPress database abstraction object.
     
    55035503 *                                      Default 'publish'.
    55045504 * }
    5505  * @return array|false List of pages matching defaults or `$args`.
     5505 * @return array|false Array of pages matching defaults or `$args`.
    55065506 */
    55075507function get_pages( $args = array() ) {
Note: See TracChangeset for help on using the changeset viewer.