Opened 22 years ago
Closed 22 years ago
#687 closed defect (bug) (fixed)
Moderated Comments are showing up in the Recent Comments list in the Dashboard
| Reported by: | jesuit | Owned by: | matt |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Component: | Administration | Version: | 1.5 |
| Severity: | trivial | Keywords: | |
| Cc: | Focuses: |
Description
Comments that have been held for moderation are showing up in teh recent comments list on teh dashboard. This can be confusing. The query should be updated to check for comment_approved = '1'
Change History (4)
Note:
See TracTickets
for help on using tickets.
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)
Here is an example of the updated query:
<?php
if ( $comments = $wpdb->get_results("SELECT comment_author, comment_author_url, comment_ID, comment_post_ID FROM $wpdb->comments WHERE comment_approved = '1' ORDER BY comment_date_gmt DESC LIMIT 5") ) :
?>
Trivial really, just confusing.