Make WordPress Core

Ticket #33068: 33068.3.diff

File 33068.3.diff, 967 bytes (added by audrasjb, 6 years ago)

Clarify Docs

  • src/wp-includes/post.php

    diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
    index e1997e24b8..016ea8c041 100644
    a b function get_extended( $post ) {  
    751751 *
    752752 * @global WP_Post $post Global post object.
    753753 *
    754  * @param int|WP_Post|null $post   Optional. Post ID or post object. Defaults to global $post.
     754 * @param int|WP_Post|null $post   Optional. Post ID or post object. Defaults to global $post. `false` or `0`
     755 *                                 returns the current global post inside the loop. A numerically valid post ID
     756 *                                 that points to a non-existent post returns `null`.
    755757 * @param string           $output Optional. The required return type. One of OBJECT, ARRAY_A, or ARRAY_N, which
    756758 *                                 correspond to a WP_Post object, an associative array, or a numeric array,
    757759 *                                 respectively. Default OBJECT.