Ticket #9034: 9034_post_cache.diff
| File 9034_post_cache.diff, 763 bytes (added by , 17 years ago) |
|---|
-
C:/xampp/htdocs/wordpress_trunk/wp-includes/post.php
1639 1639 return; 1640 1640 1641 1641 $wpdb->update( $wpdb->posts, array( 'post_status' => 'publish' ), array( 'ID' => $post_id ) ); 1642 1642 1643 1643 $old_status = $post->post_status; 1644 1644 $post->post_status = 'publish'; 1645 1645 wp_transition_post_status('publish', $old_status, $post); 1646 1646 1647 clean_post_cache($post_id); 1648 1647 1649 // Update counts for the post's terms. 1648 1650 foreach ( (array) get_object_taxonomies('post') as $taxonomy ) { 1649 1651 $tt_ids = wp_get_object_terms($post_id, $taxonomy, 'fields=tt_ids');