Make WordPress Core

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)

#1 @jesuit
22 years ago

  • Patch → No

#2 @jesuit
22 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
22 years ago

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

#4 @matt
22 years ago

  • fixed_in_version → 1.5
  • Resolution 10 → 20
  • Status assigned → closed
Note: See TracTickets for help on using tickets.