Make WordPress Core


Ignore:
Timestamp:
07/17/2020 01:47:23 PM (4 years ago)
Author:
SergeyBiryukov
Message:

Docs: Correct documentation for the $meta_key parameter of get_metadata_default().

The parameter is required, not optional.

Follow-up to [48502].

See #43941.

File:
1 edited

Legend:

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

    r48502 r48504  
    597597 *                          or any other object type with an associated meta table.
    598598 * @param int    $object_id ID of the object metadata is for.
    599  * @param string $meta_key  Metadata key. If not specified, retrieve all metadata for
    600  *                          the specified object. Default empty.
     599 * @param string $meta_key  Metadata key.
    601600 * @param bool   $single    Optional. If true, return only the first value of the specified meta_key.
    602601 *                          This parameter has no effect if meta_key is not specified. Default false.
Note: See TracChangeset for help on using the changeset viewer.