mirror of
https://github.com/gosticks/wordpress-develop.git
synced 2026-08-12 12:50:28 +00:00
Giant commit, sorry mailing list people. Move all table names to new $wpdb versions. Works but the whole app needs thorough testing now.
git-svn-id: https://develop.svn.wordpress.org/trunk@1355 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
@@ -134,7 +134,7 @@ if (isset($deleted) || isset($approved) || isset($ignored)) {
|
||||
|
||||
<div class="wrap">
|
||||
<?php
|
||||
$comments = $wpdb->get_results("SELECT * FROM $tablecomments WHERE comment_approved = '0'");
|
||||
$comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_approved = '0'");
|
||||
|
||||
if ($comments) {
|
||||
// list all comments that are waiting for approval
|
||||
@@ -147,7 +147,7 @@ if ($comments) {
|
||||
<?php
|
||||
foreach($comments as $comment) {
|
||||
$comment_date = mysql2date(get_settings("date_format") . " @ " . get_settings("time_format"), $comment->comment_date);
|
||||
$post_title = $wpdb->get_var("SELECT post_title FROM $tableposts WHERE ID='$comment->comment_post_ID'");
|
||||
$post_title = $wpdb->get_var("SELECT post_title FROM $wpdb->posts WHERE ID='$comment->comment_post_ID'");
|
||||
|
||||
echo "\n\t<li id='comment-$comment->comment_ID'>";
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user