Ticket #6953: 6953.patch
| File 6953.patch, 503 bytes (added by Sam_a, 4 months ago) |
|---|
-
wp-includes/post.php
old new 166 166 $post = (int) $post; 167 167 if ( ! $_post = wp_cache_get($post, 'posts') ) { 168 168 $_post = & $wpdb->get_row($wpdb->prepare("SELECT * FROM $wpdb->posts WHERE ID = %d LIMIT 1", $post)); 169 if ( ! $_post ) 170 return $null; 169 171 _get_post_ancestors($_post); 170 172 wp_cache_add($_post->ID, $_post, 'posts'); 171 173 }
