Make WordPress Core

Ticket #54835: #54835.patch

File #54835.patch, 914 bytes (added by rehanali, 3 years ago)

Added patch

  • post.php

     
    22732273 * @return bool True on success, false on failure.
    22742274 */
    22752275function delete_post_meta( $post_id, $meta_key, $meta_value = '' ) {
    2276         // Make sure meta is added to the post, not a revision.
     2276        // Make sure meta is deleted from the post, not from revision.
    22772277        $the_post = wp_is_post_revision( $post_id );
    22782278        if ( $the_post ) {
    22792279                $post_id = $the_post;
     
    23252325 *                  is the same as the one that is already in the database.
    23262326 */
    23272327function update_post_meta( $post_id, $meta_key, $meta_value, $prev_value = '' ) {
    2328         // Make sure meta is added to the post, not a revision.
     2328        // Make sure meta is updated for the post, not for revision.
    23292329        $the_post = wp_is_post_revision( $post_id );
    23302330        if ( $the_post ) {
    23312331                $post_id = $the_post;