WordPress.org

Make WordPress Core

Changeset 9774


Ignore:
Timestamp:
11/19/2008 05:02:24 AM (13 years ago)
Author:
markjaquith
Message:

Allow post_parent=0 queries to work. props stefano.verna. fixes #8085

File:
1 edited

Legend:

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

    r9714 r9774  
    17271727        }
    17281728
    1729         if ( $q['post_parent'] )
     1729        if ( is_integer($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.