From a161b936a9ad96788ea6d1152d89ea29ec4f7ab3 Mon Sep 17 00:00:00 2001 From: ryan Date: Wed, 19 Nov 2008 20:48:05 +0000 Subject: [PATCH] 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 --- wp-includes/query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/query.php b/wp-includes/query.php index 6b03ea43e..b4a53f9bc 100644 --- a/wp-includes/query.php +++ b/wp-includes/query.php @@ -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'] ) {