Ticket #54835: #54835.patch
File #54835.patch, 914 bytes (added by , 3 years ago) |
---|
-
post.php
2273 2273 * @return bool True on success, false on failure. 2274 2274 */ 2275 2275 function delete_post_meta( $post_id, $meta_key, $meta_value = '' ) { 2276 // Make sure meta is added to the post, not arevision.2276 // Make sure meta is deleted from the post, not from revision. 2277 2277 $the_post = wp_is_post_revision( $post_id ); 2278 2278 if ( $the_post ) { 2279 2279 $post_id = $the_post; … … 2325 2325 * is the same as the one that is already in the database. 2326 2326 */ 2327 2327 function update_post_meta( $post_id, $meta_key, $meta_value, $prev_value = '' ) { 2328 // Make sure meta is added to the post, not arevision.2328 // Make sure meta is updated for the post, not for revision. 2329 2329 $the_post = wp_is_post_revision( $post_id ); 2330 2330 if ( $the_post ) { 2331 2331 $post_id = $the_post;