Make WordPress Core

Changeset 2211


Ignore:
Timestamp:
02/03/2005 07:13:11 PM (21 years ago)
Author:
saxmatt
Message:

Don't show spam in list

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/edit.php

    r2132 r2211  
    168168if ( 1 == count($posts) ) {
    169169
    170     $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id ORDER BY comment_date");
     170    $comments = $wpdb->get_results("SELECT * FROM $wpdb->comments WHERE comment_post_ID = $id AND comment_status != 'spam' ORDER BY comment_date");
    171171    if ($comments) {
    172172    ?>
Note: See TracChangeset for help on using the changeset viewer.