From f28b518c372182007dda3342ba2e2719ab01912e Mon Sep 17 00:00:00 2001 From: Matt Mullenweg Date: Tue, 4 Jul 2006 17:30:36 +0000 Subject: [PATCH] Use single quotes to be nice to ANSI mode, fixes #1498 git-svn-id: https://develop.svn.wordpress.org/trunk@3948 602fd350-edb4-49c9-b593-d223f7449a82 --- wp-includes/query.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 8c4c6f2994..b461bf154a 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -842,11 +842,11 @@ class WP_Query { } if ( $this->is_attachment ) { - $where .= ' AND (post_type = "attachment")'; + $where .= " AND (post_type = 'attachment')"; } elseif ($this->is_page) { - $where .= ' AND (post_type = "page")'; + $where .= " AND (post_type = 'page')"; } elseif ($this->is_single) { - $where .= ' AND (post_type = "post")'; + $where .= " AND (post_type = 'post')"; } else { $where .= " AND (post_type = '$post_type' AND (post_status = 'publish'";