diff --git wp-includes/post.php wp-includes/post.php
index 03f31ef..abf00b6 100644
|
|
|
function get_pages($args = '') { |
| 3703 | 3703 | |
| 3704 | 3704 | } |
| 3705 | 3705 | |
| 3706 | | if ( $parent >= 0 ) |
| | 3706 | if ( is_array( $parent ) ) { |
| | 3707 | $post_parent__in = implode( ',', array_map( 'absint', (array) $parent ) ); |
| | 3708 | if ( ! empty( $post_parent__in ) ) |
| | 3709 | $where .= " AND post_parent IN ($post_parent__in)"; |
| | 3710 | } elseif ( $parent >= 0 ) { |
| 3707 | 3711 | $where .= $wpdb->prepare(' AND post_parent = %d ', $parent); |
| | 3712 | } |
| 3708 | 3713 | |
| 3709 | 3714 | if ( 1 == count( $post_status ) ) { |
| 3710 | 3715 | $where_post_type = $wpdb->prepare( "post_type = %s AND post_status = %s", $post_type, array_shift( $post_status ) ); |