Make WordPress Core


Ignore:
Timestamp:
04/07/2005 07:17:28 PM (22 years ago)
Author:
ryan
Message:

Fix comment feed queries for pages. ​http://mosquito.wordpress.org/view.php?id=1216 Props: mdawaffe

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-commentsrss2.php

    r2462 r2519  
    3434                        $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments
    3535                        LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE comment_post_ID = '$id'
    36                         AND $wpdb->comments.comment_approved = '1' AND ($wpdb->posts.post_status = 'publish' OR $wpdb->posts.post_status = 'page')
     36                        AND $wpdb->comments.comment_approved = '1' AND ($wpdb->posts.post_status = 'publish' OR $wpdb->posts.post_status = 'static')
    3737                        AND post_date < '".date("Y-m-d H:i:59")."'
    3838                        ORDER BY comment_date DESC LIMIT " . get_settings('posts_per_rss') );
    … …  
    4141                        comment_author_url, comment_date, comment_content, comment_post_ID,
    4242                        $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments
    43                         LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE $wpdb->posts.post_status = 'publish'
     43                        LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE ($wpdb->posts.post_status = 'publish' OR $wpdb->posts.post_status = 'static')
    4444                        AND $wpdb->comments.comment_approved = '1' AND post_date < '".date("Y-m-d H:i:s")."' 
    4545                        ORDER BY comment_date DESC LIMIT " . get_settings('posts_per_rss') );
Note: See TracChangeset for help on using the changeset viewer.