Changeset 12373
- Timestamp:
- 12/11/2009 04:44:41 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/includes/post.php
r12351 r12373 600 600 601 601 $post_id = $wpdb->get_var( $wpdb->prepare("SELECT post_id FROM $wpdb->postmeta WHERE meta_id = %d", $mid) ); 602 603 do_action( 'delete_postmeta', $mid ); 602 604 wp_cache_delete($post_id, 'post_meta'); 603 604 do_action( 'delete_postmeta', $mid );605 605 $rval = $wpdb->query( $wpdb->prepare("DELETE FROM $wpdb->postmeta WHERE meta_id = %d", $mid) ); 606 606 do_action( 'deleted_postmeta', $mid ); … … 687 687 688 688 $post_id = $wpdb->get_var( $wpdb->prepare("SELECT post_id FROM $wpdb->postmeta WHERE meta_id = %d", $meta_id) ); 689 wp_cache_delete($post_id, 'post_meta');690 689 691 690 $meta_value = maybe_serialize( stripslashes_deep( $meta_value ) ); … … 697 696 do_action( 'update_postmeta', $meta_id, $post_id, $meta_key, $meta_value ); 698 697 $rval = $wpdb->update( $wpdb->postmeta, $data, $where ); 698 wp_cache_delete($post_id, 'post_meta'); 699 699 do_action( 'updated_postmeta', $meta_id, $post_id, $meta_key, $meta_value ); 700 700
Note: See TracChangeset
for help on using the changeset viewer.