WordPress.org

Make WordPress Core

Ticket #10381: 10381.diff

File 10381.diff, 381 bytes (added by Denis-de-Bernardy, 4 years ago)
  • wp-includes/post.php

     
    30653065        if ( !$posts ) 
    30663066                return; 
    30673067 
    3068         foreach ( $posts as $post ) 
     3068        foreach ( $posts as $post ) { 
     3069                _get_post_ancestors($post); 
    30693070                wp_cache_add($post->ID, $post, 'posts'); 
     3071        } 
    30703072} 
    30713073 
    30723074/**