Ticket #8284: 8284.diff
File 8284.diff, 470 bytes (added by , 16 years ago) |
---|
-
wp-includes/query.php
1726 1726 $where .= " AND {$wpdb->posts}.ID NOT IN ($post__not_in)"; 1727 1727 } 1728 1728 1729 if ( is_ integer($q['post_parent']) )1729 if ( is_numeric($q['post_parent']) ) 1730 1730 $where .= $wpdb->prepare( " AND $wpdb->posts.post_parent = %d ", $q['post_parent'] ); 1731 1731 1732 1732 if ( $q['page_id'] ) {