Make WordPress Core


Ignore:
Timestamp:
04/22/2020 09:38:12 AM (5 years ago)
Author:
SergeyBiryukov
Message:

Docs: Document the default value of $single and $prev_value parameters in various metadata functions.

Props denisco.
See #49572.

File:
1 edited

Legend:

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

    r47582 r47610  
    21372137 * @param string $meta_key   Metadata key.
    21382138 * @param mixed  $meta_value Metadata value. Must be serializable if non-scalar.
    2139  * @param mixed  $prev_value Optional. Previous value to check before updating.
     2139 * @param mixed  $prev_value Optional. Previous value to check before updating. Default empty.
    21402140 * @return int|bool The new meta field ID if a field with the given key didn't exist and was
    21412141 *                  therefore added, true on successful update, false on failure.
Note: See TracChangeset for help on using the changeset viewer.