Ticket #54835: 54835.diff
File 54835.diff, 956 bytes (added by , 3 years ago) |
---|
-
src/wp-includes/post.php
2475 2475 * @return bool True on success, false on failure. 2476 2476 */ 2477 2477 function delete_post_meta( $post_id, $meta_key, $meta_value = '' ) { 2478 // Make sure meta is added to the post, not arevision.2478 // Make sure meta is deleted from the post, not from revision. 2479 2479 $the_post = wp_is_post_revision( $post_id ); 2480 2480 if ( $the_post ) { 2481 2481 $post_id = $the_post; … … 2527 2527 * is the same as the one that is already in the database. 2528 2528 */ 2529 2529 function update_post_meta( $post_id, $meta_key, $meta_value, $prev_value = '' ) { 2530 // Make sure meta is added to the post, not arevision.2530 // Make sure meta is updated for the post, not for revision. 2531 2531 $the_post = wp_is_post_revision( $post_id ); 2532 2532 if ( $the_post ) { 2533 2533 $post_id = $the_post;