WordPress.org

Make WordPress Core

Ticket #42505: 42505-post.diff

File 42505-post.diff, 675 bytes (added by DrewAPicture, 3 years ago)

To be merged when Trunk reopens after 5.0

  • src/wp-includes/post.php

     
    19651965/**
    19661966 * Updates a post meta field based on the given post ID.
    19671967 *
    1968  * Use the $prev_value parameter to differentiate between meta fields with the
     1968 * Use the `$prev_value` parameter to differentiate between meta fields with the
    19691969 * same key and post ID.
    19701970 *
    19711971 * If the meta field for the post does not exist, it will be added and its ID returned.
    19721972 *
     1973 * Can be used in place of add_post_meta().
     1974 *
    19731975 * @since 1.5.0
    19741976 *
    19751977 * @param int    $post_id    Post ID.