Changeset 9252
- Timestamp:
- 10/20/2008 05:47:13 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r9242 r9252 549 549 global $wpdb; 550 550 551 $post_id = absint( $post_id ); 551 // make sure meta is added to the post, not a revision 552 if ( $the_post = wp_is_post_revision($post_id) ) 553 $post_id = $the_post; 552 554 553 555 // expected_slashed ($meta_key, $meta_value) … … 626 628 function update_post_meta($post_id, $meta_key, $meta_value, $prev_value = '') { 627 629 global $wpdb; 630 631 // make sure meta is added to the post, not a revision 632 if ( $the_post = wp_is_post_revision($post_id) ) 633 $post_id = $the_post; 628 634 629 635 // expected_slashed ($meta_key)
Note: See TracChangeset
for help on using the changeset viewer.