Ticket #10381: fix-post-ancestors.diff
File fix-post-ancestors.diff, 435 bytes (added by , 16 years ago) |
---|
-
wp-includes/post.php
229 229 return $null; 230 230 _get_post_ancestors($_post); 231 231 wp_cache_add($_post->ID, $_post, 'posts'); 232 } elseif ( !isset($_post->ancestors) ) { 233 _get_post_ancestors($_post); 234 wp_cache_replace($_post->ID, $_post, 'posts'); 232 235 } 233 236 } 234 237