Changeset 31324 for trunk/src/wp-includes/query.php
- Timestamp:
- 02/03/2015 02:28:52 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r31321 r31324 3422 3422 if ( 'ids' == $q['fields'] ) { 3423 3423 $this->posts = $wpdb->get_col( $this->request ); 3424 $this->posts = array_map( 'intval', $this->posts ); 3424 3425 $this->post_count = count( $this->posts ); 3425 3426 $this->set_found_posts( $q, $limits ); 3426 3427 3427 return array_map( 'intval', $this->posts );3428 return $this->posts; 3428 3429 } 3429 3430 … … 3434 3435 3435 3436 $r = array(); 3436 foreach ( $this->posts as $post ) { 3437 foreach ( $this->posts as $key => $post ) { 3438 $this->posts[ $key ]->ID = (int) $post->ID; 3439 $this->posts[ $key ]->post_parent = (int) $post->post_parent; 3440 3437 3441 $r[ (int) $post->ID ] = (int) $post->post_parent; 3438 3442 } 3443 3439 3444 return $r; 3440 3445 }
Note: See TracChangeset
for help on using the changeset viewer.