Ticket #28434: 28434.patch
File 28434.patch, 788 bytes (added by , 11 years ago) |
---|
-
wp-includes/comment.php
245 245 246 246 $defaults = array( 247 247 'author_email' => '', 248 'fields' => '', 248 249 'ID' => '', 249 250 'karma' => '', 250 251 'number' => '', … … 368 369 if ( $this->query_vars['count'] ) { 369 370 $fields = 'COUNT(*)'; 370 371 } else { 371 $fields = '*'; 372 switch ( strtolower( $this->query_vars['fields'] ) ) { 373 case 'ids': 374 $fields = "$wpdb->comments.comment_ID"; 375 break; 376 case 'id=>parent': 377 $fields = "$wpdb->comments.comment_ID, $wpdb->comments.comment_post_ID"; 378 break; 379 default: 380 $fields = "*"; 381 } 372 382 } 383 373 384 $join = ''; 374 385 $where = $approved; 375 386