Make WordPress Core

Opened 13 years ago

Closed 13 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:


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)

#1 @jesuit
13 years ago

  • Patch set to No

#2 @jesuit
13 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.

#3 @ryan
13 years ago

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

#4 @matt
13 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.