Changeset 22635
- Timestamp:
- 11/17/2012 03:14:48 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-includes/post.php
r22464 r22635 569 569 570 570 $post_id = (int) $post_id; 571 if ( ! $post_id )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 … … 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
Note: See TracChangeset
for help on using the changeset viewer.