Make WordPress Core

Changeset 60621


Ignore:
Timestamp:
08/09/2025 12:47:41 PM (25 hours ago)
Author:
SergeyBiryukov
Message:

Docs: Correct @return type for get_post_field().

Follow-up to [6379], [21559], [24490].

Props marian1, rollybueno.
Fixes #63802.

File:
1 edited

Legend:

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

    r60510 r60621  
    11811181 * @param string      $context Optional. How to filter the field. Accepts 'raw', 'edit', 'db',
    11821182 *                             or 'display'. Default 'display'.
    1183  * @return string The value of the post field on success, empty string on failure.
     1183 * @return int|string|int[] The value of the post field on success, empty string on failure.
    11841184 */
    11851185function get_post_field( $field, $post = null, $context = 'display' ) {
Note: See TracChangeset for help on using the changeset viewer.