WordPress.org

Make WordPress Core

Changeset 7734


Ignore:
Timestamp:
04/18/08 01:53:49 (6 years ago)
Author:
ryan
Message:

Checking for 0 and 1 instead of != spam is faster. For 2.5

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.5/wp-admin/includes/template.php

    r7718 r7734  
    597597        $approved = "comment_approved = 'spam'"; 
    598598    else 
    599         $approved = "comment_approved != 'spam'"; 
     599        $approved = "comment_approved = '0' OR comment_approved = '1'"; 
    600600 
    601601    if ( $s ) { 
Note: See TracChangeset for help on using the changeset viewer.