WordPress.org

Make WordPress Core

Changeset 7732


Ignore:
Timestamp:
04/17/08 22:33:35 (7 years ago)
Author:
ryan
Message:

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

File:
1 edited

Legend:

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

    r7720 r7732  
    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.