#2293 closed defect (bug) (fixed)
$tablecomments still in use in wp-admin/index.php
| Reported by: | gamerz | Owned by: | |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 2.0 |
| Severity: | minor | Keywords: | |
| Cc: | Focuses: |
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)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
(In [3443]) Use ->comments instead of . fixes #2293