WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#2293 closed defect (bug) (fixed)

$tablecomments still in use in wp-admin/index.php

Reported by: gamerz Owned by: anonymous
Priority: normal Milestone:
Component: Administration Version: 2.0
Severity: minor Keywords:
Cc:

Description

Open wp-admin/index.php Line 36

Old Code:
$numcomments = $wpdb->get_var("SELECT COUNT(*) FROM $tablecomments WHERE comment_approved = '0'");

New Code:
$numcomments = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->comments WHERE comment_approved = '0'");

Change History (3)

comment:1 ryan7 years ago

  • Milestone set to 2.0.1

comment:2 ryan7 years ago

  • Resolution set to fixed
  • Status changed from new to closed

(In [3443]) Use ->comments instead of . fixes #2293

comment:3 anonymous7 years ago

  • Milestone 2.0.1 deleted

Milestone 2.0.1 deleted

Note: See TracTickets for help on using tickets.