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
This commit is contained in:
parent
5a205f578b
commit
f28b518c37
@ -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'";
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user