Use is_numeric instead of is_integer. Props johnconners. fixes #8284

git-svn-id: http://svn.automattic.com/wordpress/trunk@9795 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
ryan 2008-11-19 20:48:05 +00:00
parent 2b64afff0d
commit a161b936a9
1 changed files with 1 additions and 1 deletions

View File

@ -1726,7 +1726,7 @@ class WP_Query {
$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'] );
if ( $q['page_id'] ) {