mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-06-28 22:30:04 +00:00
Remove whitespace from around the WP_Post/get_post SQL string.
git-svn-id: https://develop.svn.wordpress.org/trunk@22230 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user