#2293 closed defect (bug) (fixed)
$tablecomments still in use in wp-admin/index.php
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| 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)
Note: See
TracTickets for help on using
tickets.
(In [3443]) Use ->comments instead of . fixes #2293