Changeset 1355 for trunk/wp-admin/moderation.php
- Timestamp:
- 05/24/2004 08:22:18 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/moderation.php
r1239 r1355 135 135 <div class="wrap"> 136 136 <?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'"); 138 138 139 139 if ($comments) { … … 148 148 foreach($comments as $comment) { 149 149 $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'"); 151 151 152 152 echo "\n\t<li id='comment-$comment->comment_ID'>";
Note: See TracChangeset
for help on using the changeset viewer.