diff --git wp-includes/post.php wp-includes/post.php
index eecdd7b..24450ce 100644
|
|
final class WP_Post { |
571 | 571 | if ( !$post_id ) |
572 | 572 | return false; |
573 | 573 | |
574 | | if ( ! $_post = wp_cache_get( $post_id, 'posts' ) ) { |
| 574 | $_post = wp_cache_get( $post_id, 'posts' ); |
| 575 | |
| 576 | if ( !$_post ) { |
575 | 577 | $_post = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE ID = %d LIMIT 1", $post_id ) ); |
576 | 578 | |
577 | 579 | if ( ! $_post ) |
… |
… |
final class WP_Post { |
579 | 581 | |
580 | 582 | $_post = sanitize_post( $_post, 'raw' ); |
581 | 583 | wp_cache_add( $_post->ID, $_post, 'posts' ); |
| 584 | } elseif ( empty( $_post->filter ) ) { |
| 585 | $_post = sanitize_post( $_post, 'raw' ); |
582 | 586 | } |
583 | 587 | |
584 | 588 | return new WP_Post( $_post ); |