Make WordPress Core


Ignore:
Timestamp:
05/24/2004 08:22:18 AM (21 years ago)
Author:
saxmatt
Message:

Giant commit, sorry mailing list people. Move all table names to new $wpdb versions. Works but the whole app needs thorough testing now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-commentsrss2.php

    r1223 r1355  
    2929            $comments = $wpdb->get_results("SELECT comment_ID, comment_author, comment_author_email,
    3030            comment_author_url, comment_date, comment_content, comment_post_ID,
    31             $tableposts.ID, $tableposts.post_password FROM $tablecomments
    32             LEFT JOIN $tableposts ON comment_post_id = id WHERE comment_post_ID = '$id'
    33             AND $tablecomments.comment_approved = '1' AND $tableposts.post_status = 'publish'
     31            $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments
     32            LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE comment_post_ID = '$id'
     33            AND $wpdb->comments.comment_approved = '1' AND $wpdb->posts.post_status = 'publish'
    3434            AND post_date < '".date("Y-m-d H:i:59")."'
    3535            ORDER BY comment_date LIMIT " . get_settings('posts_per_rss') );
     
    3737            $comments = $wpdb->get_results("SELECT comment_ID, comment_author, comment_author_email,
    3838            comment_author_url, comment_date, comment_content, comment_post_ID,
    39             $tableposts.ID, $tableposts.post_password FROM $tablecomments
    40             LEFT JOIN $tableposts ON comment_post_id = id WHERE $tableposts.post_status = 'publish'
    41             AND $tablecomments.comment_approved = '1' AND post_date < '".date("Y-m-d H:i:s")."' 
     39            $wpdb->posts.ID, $wpdb->posts.post_password FROM $wpdb->comments
     40            LEFT JOIN $wpdb->posts ON comment_post_id = id WHERE $wpdb->posts.post_status = 'publish'
     41            AND $wpdb->comments.comment_approved = '1' AND post_date < '".date("Y-m-d H:i:s")."' 
    4242            ORDER BY comment_date DESC LIMIT " . get_settings('posts_per_rss') );
    4343        }
Note: See TracChangeset for help on using the changeset viewer.