WordPress.org

Make WordPress Core

Opened 9 years ago

Closed 9 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
Milestone: Priority: normal
Severity: trivial Version: 1.5
Component: Administration Keywords:
Focuses: Cc:

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)

comment:1 jesuit9 years ago

  • Patch set to No

comment:2 jesuit9 years ago

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.

comment:3 ryan9 years ago

  • Owner changed from anonymous to matt
  • Status changed from new to assigned

comment:4 matt9 years ago

  • fixed_in_version set to 1.5
  • Resolution changed from 10 to 20
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.