Ticket #7925: post.php.diff
File post.php.diff, 800 bytes (added by , 16 years ago) |
---|
-
post.php
549 549 function delete_post_meta($post_id, $key, $value = '') { 550 550 global $wpdb; 551 551 552 $post_id = absint( $post_id ); 552 // make sure meta is added to the post, not a revision 553 if ( $the_post = wp_is_post_revision($post_id) ) 554 $post_id = $the_post; 553 555 554 556 // expected_slashed ($key, $value) 555 557 $key = stripslashes( $key ); … … 630 632 function update_post_meta($post_id, $meta_key, $meta_value, $prev_value = '') { 631 633 global $wpdb; 632 634 635 // make sure meta is added to the post, not a revision 636 if ( $the_post = wp_is_post_revision($post_id) ) 637 $post_id = $the_post; 638 633 639 // expected_slashed ($meta_key) 634 640 $meta_key = stripslashes($meta_key);