Make WordPress Core


Ignore:
Timestamp:
10/20/2005 08:48:32 PM (21 years ago)
Author:
ryan
Message:

Image fu from Andy. fixes #1776

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-commentsrss2.php

    r2627 r2958  
    3333            $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments
    3434            LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE comment_post_ID = '$id'
    35             AND $wpdb->comments.comment_approved = '1' AND ($wpdb->posts.post_status = 'publish' OR $wpdb->posts.post_status = 'static')
     35            AND $wpdb->comments.comment_approved = '1' AND $wpdb->posts.post_status IN ('publish', 'static', 'object')
    3636            AND post_date < '".date("Y-m-d H:i:59")."'
    3737            ORDER BY comment_date DESC LIMIT " . get_settings('posts_per_rss') );
     
    4040            comment_author_url, comment_date, comment_date_gmt, comment_content, comment_post_ID,
    4141            $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments
    42             LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE ($wpdb->posts.post_status = 'publish' OR $wpdb->posts.post_status = 'static')
     42            LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE $wpdb->posts.post_status IN ('publish', 'static', 'object')
    4343            AND $wpdb->comments.comment_approved = '1' AND post_date < '".date("Y-m-d H:i:s")."' 
    4444            ORDER BY comment_date DESC LIMIT " . get_settings('posts_per_rss') );
Note: See TracChangeset for help on using the changeset viewer.