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-admin/moderation.php

    r1239 r1355  
    135135<div class="wrap">
    136136<?php
    137 $comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_approved = '0'");
     137$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_approved = '0'");
    138138
    139139if ($comments) {
     
    148148    foreach($comments as $comment) {
    149149    $comment_date = mysql2date(get_settings("date_format") . " @ " . get_settings("time_format"), $comment->comment_date);
    150     $post_title = $wpdb->get_var("SELECT post_title FROM $tableposts WHERE ID='$comment->comment_post_ID'");
     150    $post_title = $wpdb->get_var("SELECT post_title FROM $wpdb->posts WHERE ID='$comment->comment_post_ID'");
    151151   
    152152    echo "\n\t<li id='comment-$comment->comment_ID'>";
Note: See TracChangeset for help on using the changeset viewer.