From 57681dda7ae5072fba6adad8bf64afc5b03ede85 Mon Sep 17 00:00:00 2001 From: Andrew Nacin Date: Mon, 15 Oct 2012 03:08:43 +0000 Subject: [PATCH] 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 --- wp-includes/post.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/wp-includes/post.php b/wp-includes/post.php index bcec81b7f0..7c9d6c67b1 100644 --- a/wp-includes/post.php +++ b/wp-includes/post.php @@ -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;