Ticket #21733: fields-count.diff
| File fields-count.diff, 695 bytes (added by , 13 years ago) |
|---|
-
wp-includes/query.php
2614 2614 } 2615 2615 2616 2616 if ( 'ids' == $q['fields'] ) { 2617 $this->posts = $wpdb->get_col($this->request); 2618 2617 $this->posts = $wpdb->get_col( $this->request ); 2618 $this->post_count = count( $this->posts ); 2619 2619 2620 return $this->posts; 2620 2621 } 2621 2622 2622 2623 if ( 'id=>parent' == $q['fields'] ) { 2623 $this->posts = $wpdb->get_results($this->request); 2624 $this->posts = $wpdb->get_results( $this->request ); 2625 $this->post_count = count( $this->posts ); 2624 2626 2625 2627 $r = array(); 2626 2628 foreach ( $this->posts as $post )