Make WordPress Core


Ignore:
Timestamp:
08/11/2022 02:01:35 PM (23 months ago)
Author:
johnbillion
Message:

Docs: Correct and improve the documented types for various functions and hooks.

See #55646

File:
1 edited

Legend:

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

    r53837 r53877  
    862862 *                       correspond to a WP_Post object, an associative array, or a numeric array,
    863863 *                       respectively. Default OBJECT.
    864  * @return WP_Post[]|int[] Array of post objects or post IDs.
     864 * @return WP_Post[]|array[]|int[] Array of post objects, arrays, or IDs, depending on `$output`.
    865865 */
    866866function get_children( $args = '', $output = OBJECT ) {
     
    58075807 * @since 1.5.1
    58085808 *
    5809  * @param int   $page_id Page ID.
    5810  * @param array $pages   List of page objects from which descendants should be identified.
    5811  * @return array List of page children.
     5809 * @param int       $page_id Page ID.
     5810 * @param WP_Post[] $pages   List of page objects from which descendants should be identified.
     5811 * @return WP_Post[] List of page children.
    58125812 */
    58135813function get_page_children( $page_id, $pages ) {
Note: See TracChangeset for help on using the changeset viewer.