Log in with username/password: lyceum/lyceum

Changeset 1050

Show
Ignore:
Timestamp:
08/11/07 19:23:29 (1 year ago)
Author:
jjb
Message:

Don't show double comments when the parent post is in more than one category. Props to Bryan Thale.

#791

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/lyceum/wp-commentsrss2.php

    r1000 r1050  
    3131      if (is_single() || is_page()) { 
    3232         $comments = $wpdb->get_results(" 
    33             SELECT 
     33            SELECT DISTINCT 
    3434               comment_ID, comment_author, comment_author_email, comment_author_url, comment_date,  
    3535               comment_date_gmt, comment_content, comment_post_ID, $wpdb->posts.ID, $wpdb->posts.post_password 
     
    4848      } else { // if no post id passed in, we'll just ue the last 10 comments. 
    4949         $comments = $wpdb->get_results(" 
    50             SELECT 
     50            SELECT DISTINCT 
    5151               comment_ID, comment_author, comment_author_email,  comment_author_url, comment_date,  
    5252               comment_date_gmt, comment_content, comment_post_ID, $wpdb->posts.ID, $wpdb->posts.post_password  
Log in with username/password: lyceum/lyceum