| 1 | Index: wp-includes/query.php |
|---|
| 2 | =================================================================== |
|---|
| 3 | --- wp-includes/query.php (revision 21655) |
|---|
| 4 | +++ wp-includes/query.php (working copy) |
|---|
| 5 | @@ -2614,13 +2614,15 @@ |
|---|
| 6 | } |
|---|
| 7 | |
|---|
| 8 | if ( 'ids' == $q['fields'] ) { |
|---|
| 9 | - $this->posts = $wpdb->get_col($this->request); |
|---|
| 10 | - |
|---|
| 11 | + $this->posts = $wpdb->get_col( $this->request ); |
|---|
| 12 | + $this->post_count = count( $this->posts ); |
|---|
| 13 | + |
|---|
| 14 | return $this->posts; |
|---|
| 15 | } |
|---|
| 16 | |
|---|
| 17 | if ( 'id=>parent' == $q['fields'] ) { |
|---|
| 18 | - $this->posts = $wpdb->get_results($this->request); |
|---|
| 19 | + $this->posts = $wpdb->get_results( $this->request ); |
|---|
| 20 | + $this->post_count = count( $this->posts ); |
|---|
| 21 | |
|---|
| 22 | $r = array(); |
|---|
| 23 | foreach ( $this->posts as $post ) |
|---|