Make WordPress Core


Ignore:
Timestamp:
11/19/2008 08:48:05 PM (15 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r9774 r9795  
    17271727        }
    17281728
    1729         if ( is_integer($q['post_parent']) )
     1729        if ( is_numeric($q['post_parent']) )
    17301730            $where .= $wpdb->prepare( " AND $wpdb->posts.post_parent = %d ", $q['post_parent'] );
    17311731
Note: See TracChangeset for help on using the changeset viewer.