Make WordPress Core

Changeset 52795


Ignore:
Timestamp:
02/24/2022 09:24:41 PM (2 years ago)
Author:
audrasjb
Message:

Docs: Correct return type for get_post_custom().

Props chouby, audrasjb.
Fixes #55249.
See #54729.

File:
1 edited

Legend:

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

    r52755 r52795  
    25922592 *
    25932593 * @param int $post_id Optional. Post ID. Default is the ID of the global `$post`.
    2594  * @return array Post meta for the given post.
     2594 * @return mixed An array of values.
     2595 *               False for an invalid `$post_id` (non-numeric, zero, or negative value).
     2596 *               An empty string if a valid but non-existing post ID is passed.
    25952597 */
    25962598function get_post_custom( $post_id = 0 ) {
Note: See TracChangeset for help on using the changeset viewer.