Changeset 33891 for trunk/src/wp-includes/query.php
- Timestamp:
- 09/03/2015 06:16:35 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/query.php
r33734 r33891 3187 3187 $corderby = ( ! empty( $corderby ) ) ? 'ORDER BY ' . $corderby : ''; 3188 3188 3189 $this->comments = (array) $wpdb->get_results("SELECT $distinct $wpdb->comments.* FROM $wpdb->comments $cjoin $cwhere $cgroupby $corderby $climits"); 3189 $comments = (array) $wpdb->get_results("SELECT $distinct $wpdb->comments.* FROM $wpdb->comments $cjoin $cwhere $cgroupby $corderby $climits"); 3190 // Convert to WP_Comment 3191 $this->comments = array_map( 'get_comment', $comments ); 3190 3192 $this->comment_count = count($this->comments); 3191 3193 … … 3558 3560 3559 3561 $comments_request = "SELECT $wpdb->comments.* FROM $wpdb->comments $cjoin $cwhere $cgroupby $corderby $climits"; 3560 $this->comments = $wpdb->get_results($comments_request); 3562 $comments = $wpdb->get_results($comments_request); 3563 // Convert to WP_Comment 3564 $this->comments = array_map( 'get_comment', $comments ); 3561 3565 $this->comment_count = count($this->comments); 3562 3566 } … … 3813 3817 3814 3818 /** 3815 * Iterate current comment index and return comment object.3819 * Iterate current comment index and return WP_Comment object. 3816 3820 * 3817 3821 * @since 2.2.0 3818 3822 * @access public 3819 3823 * 3820 * @return object Comment object.3824 * @return WP_Comment Comment object. 3821 3825 */ 3822 3826 public function next_comment() {
Note: See TracChangeset
for help on using the changeset viewer.