Use is_numeric instead of is_integer. Props johnconners. fixes #8284
git-svn-id: https://develop.svn.wordpress.org/trunk@9795 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
07aed2ee39
commit
a32bc07082
|
@ -1726,7 +1726,7 @@ class WP_Query {
|
||||||
$where .= " AND {$wpdb->posts}.ID NOT IN ($post__not_in)";
|
$where .= " AND {$wpdb->posts}.ID NOT IN ($post__not_in)";
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( is_integer($q['post_parent']) )
|
if ( is_numeric($q['post_parent']) )
|
||||||
$where .= $wpdb->prepare( " AND $wpdb->posts.post_parent = %d ", $q['post_parent'] );
|
$where .= $wpdb->prepare( " AND $wpdb->posts.post_parent = %d ", $q['post_parent'] );
|
||||||
|
|
||||||
if ( $q['page_id'] ) {
|
if ( $q['page_id'] ) {
|
||||||
|
|
Loading…
Reference in New Issue