IDEA additional info:
Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP
<+>UTF-8
|
|
|
|
| 665 | 665 | * @type bool $exact Whether to search by exact keyword. Default false. |
| 666 | 666 | * @type string|array $fields Which fields to return. Single field or all fields (string), |
| 667 | 667 | * or array of fields. 'id=>parent' uses 'id' and 'post_parent'. |
| 668 | | * Default all fields. Accepts 'ids', 'id=>parent'. |
| | 668 | * Default all fields. Accepts 'ids', 'id=>parent', 'id=>title'. |
| 669 | 669 | * @type int $hour Hour of the day. Default empty. Accepts numbers 0-23. |
| 670 | 670 | * @type int|bool $ignore_sticky_posts Whether to ignore sticky posts or not. Setting this to false |
| 671 | 671 | * excludes stickies from 'post__in'. Accepts 1|true, 0|false. |
| … |
… |
|
| 1792 | 1792 | case 'id=>parent': |
| 1793 | 1793 | $fields = "{$wpdb->posts}.ID, {$wpdb->posts}.post_parent"; |
| 1794 | 1794 | break; |
| | 1795 | case 'id=>title': |
| | 1796 | $fields = "{$wpdb->posts}.ID, {$wpdb->posts}.post_title"; |
| | 1797 | break; |
| 1795 | 1798 | default: |
| 1796 | 1799 | $fields = "{$wpdb->posts}.*"; |
| 1797 | 1800 | } |
| … |
… |
|
| 2783 | 2786 | $this->posts[ $key ]->post_parent = (int) $post->post_parent; |
| 2784 | 2787 | |
| 2785 | 2788 | $r[ (int) $post->ID ] = (int) $post->post_parent; |
| | 2789 | } |
| | 2790 | |
| | 2791 | return $r; |
| | 2792 | } |
| | 2793 | |
| | 2794 | if ( 'id=>title' == $q['fields'] ) { |
| | 2795 | if ( null === $this->posts ) { |
| | 2796 | $this->posts = $wpdb->get_results( $this->request ); |
| | 2797 | } |
| | 2798 | |
| | 2799 | $this->post_count = count( $this->posts ); |
| | 2800 | $this->set_found_posts( $q, $limits ); |
| | 2801 | |
| | 2802 | $r = array(); |
| | 2803 | foreach ( $this->posts as $key => $post ) { |
| | 2804 | $this->posts[ $key ]->ID = (int) $post->ID; |
| | 2805 | $this->posts[ $key ]->post_title = $post->post_title; |
| | 2806 | |
| | 2807 | $r[ (int) $post->ID ] = $post->post_title; |
| 2786 | 2808 | } |
| 2787 | 2809 | |
| 2788 | 2810 | return $r; |