Use single quotes to be nice to ANSI mode, fixes #1498

git-svn-id: http://svn.automattic.com/wordpress/trunk@3948 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2006-07-04 17:30:36 +00:00
parent 79e652005e
commit 7569167a7b
1 changed files with 3 additions and 3 deletions

View File

@ -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'";