Ticket #18822: 18822.diff
File 18822.diff, 477 bytes (added by , 13 years ago) |
---|
-
wp-includes/post.php
diff --git wp-includes/post.php wp-includes/post.php index 76fdd65..9944b53 100644
function &get_post(&$post, $output = OBJECT, $filter = 'raw') { 381 381 _get_post_ancestors($post); 382 382 $_post = sanitize_post($post, 'raw'); 383 383 wp_cache_add($post->ID, $_post, 'posts'); 384 } elseif ( is_object($post) && 'raw' == $post->filter ) { 385 $_post = $post; 384 386 } else { 385 387 if ( is_object($post) ) 386 388 $post_id = $post->ID;