equal
deleted
inserted
replaced
245 return false; |
245 return false; |
246 } |
246 } |
247 |
247 |
248 $_post = sanitize_post( $_post, 'raw' ); |
248 $_post = sanitize_post( $_post, 'raw' ); |
249 wp_cache_add( $_post->ID, $_post, 'posts' ); |
249 wp_cache_add( $_post->ID, $_post, 'posts' ); |
250 } elseif ( empty( $_post->filter ) ) { |
250 } elseif ( empty( $_post->filter ) || 'raw' !== $_post->filter ) { |
251 $_post = sanitize_post( $_post, 'raw' ); |
251 $_post = sanitize_post( $_post, 'raw' ); |
252 } |
252 } |
253 |
253 |
254 return new WP_Post( $_post ); |
254 return new WP_Post( $_post ); |
255 } |
255 } |