Remove whitespace from around the WP_Post/get_post SQL string.

git-svn-id: http://core.svn.wordpress.org/trunk@22230 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
Andrew Nacin 2012-10-15 03:08:43 +00:00
parent 8762f64494
commit 57681dda7a

View File

@ -455,9 +455,7 @@ final class WP_Post {
return false;
if ( ! $_post = wp_cache_get( $post_id, 'posts' ) ) {
$_post = $wpdb->get_row( $wpdb->prepare( "
SELECT * FROM $wpdb->posts WHERE ID = %d LIMIT 1
", $post_id ) );
$_post = $wpdb->get_row( $wpdb->prepare( "SELECT * FROM $wpdb->posts WHERE ID = %d LIMIT 1", $post_id ) );
if ( ! $_post )
return false;