Make WordPress Core

Ticket #33068: 33068.diff

File 33068.diff, 1000 bytes (added by peterwilsoncc, 6 years ago)
  • src/wp-includes/post.php

    diff --git a/src/wp-includes/post.php b/src/wp-includes/post.php
    index b280bde627..526d8f7f36 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. `null`, `false`, `0` and other PHP falsey
     755 *                                 values return the current global post inside the loop. A numerically valid post
     756 *                                 ID that points to a non-existent post returns `null`. Defaults to global $post.
    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.