WordPress.org

Make WordPress Core

Ticket #9034: 9034_post_cache.diff

File 9034_post_cache.diff, 763 bytes (added by hailin, 7 years ago)

updated patch

  • C:/xampp/htdocs/wordpress_trunk/wp-includes/post.php

     
    16391639                return; 
    16401640 
    16411641        $wpdb->update( $wpdb->posts, array( 'post_status' => 'publish' ), array( 'ID' => $post_id ) ); 
    1642  
     1642         
    16431643        $old_status = $post->post_status; 
    16441644        $post->post_status = 'publish'; 
    16451645        wp_transition_post_status('publish', $old_status, $post); 
    16461646 
     1647        clean_post_cache($post_id); 
     1648         
    16471649        // Update counts for the post's terms. 
    16481650        foreach ( (array) get_object_taxonomies('post') as $taxonomy ) { 
    16491651                $tt_ids = wp_get_object_terms($post_id, $taxonomy, 'fields=tt_ids');