| 744 | | $comments = $wpdb->get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT $number"); |
| | 744 | if( get_option('default_ping_status') == 'open' ) |
| | 745 | { |
| | 746 | $comments = $wpdb->get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT $number"); |
| | 747 | } |
| | 748 | else |
| | 749 | { |
| | 750 | $comments = $wpdb->get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb->comments WHERE comment_approved = '1' AND comment_type NOT IN ('trackback', 'pingback') ORDER BY comment_date_gmt DESC LIMIT $number"); |
| | 751 | } |