WordPress.org

Make WordPress Core

Changeset 44334


Ignore:
Timestamp:
12/19/2018 04:38:51 PM (13 months ago)
Author:
DrewAPicture
Message:

Docs: Add backtick escaping around a variable name in the DocBlock for update_post_meta().

Also adds a note to the description explaining that it can be used in place of add_post_meta().

See #42505.

File:
1 edited

Legend:

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

    r44215 r44334  
    20282028 * Updates a post meta field based on the given post ID.
    20292029 *
    2030  * Use the $prev_value parameter to differentiate between meta fields with the
     2030 * Use the `$prev_value` parameter to differentiate between meta fields with the
    20312031 * same key and post ID.
    20322032 *
    20332033 * If the meta field for the post does not exist, it will be added and its ID returned.
     2034 *
     2035 * Can be used in place of add_post_meta().
    20342036 *
    20352037 * @since 1.5.0
Note: See TracChangeset for help on using the changeset viewer.