Make WordPress Core

Changeset 53837


Ignore:
Timestamp:
08/05/2022 05:44:49 AM (2 years ago)
Author:
audrasjb
Message:

Docs: Provide a more accurate @return type for get_pages() function.

Props malthert, audrasjb, johnbillion, jigar-bhanushali.
Fixes #56330.
See #55646.

File:
1 edited

Legend:

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

    r53825 r53837  
    59725972 *                                      Default 'publish'.
    59735973 * }
    5974  * @return WP_Post[]|int[]|false Array of pages (or hierarchical post type items). Boolean false if the
    5975  *                               specified post type is not hierarchical or the specified status is not
    5976  *                               supported by the post type.
     5974 * @return WP_Post[]|false Array of pages (or hierarchical post type items). Boolean false if the
     5975 *                         specified post type is not hierarchical or the specified status is not
     5976 *                         supported by the post type.
    59775977 */
    59785978function get_pages( $args = array() ) {
Note: See TracChangeset for help on using the changeset viewer.