Make WordPress Core


Ignore:
Timestamp:
03/19/2010 09:29:21 PM (15 years ago)
Author:
nacin
Message:

Remove redundant isset() and empty() checks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/query.php

    r13758 r13770  
    22352235            $where .= $wpdb->prepare(" AND $wpdb->postmeta.meta_key = %s ", $q['meta_key']);
    22362236        if ( ! empty($q['meta_value']) ) {
    2237             if ( ! isset($q['meta_compare']) || empty($q['meta_compare']) || ! in_array($q['meta_compare'], array('=', '!=', '>', '>=', '<', '<=')) )
     2237            if ( empty($q['meta_compare']) || ! in_array($q['meta_compare'], array('=', '!=', '>', '>=', '<', '<=')) )
    22382238                $q['meta_compare'] = '=';
    22392239
Note: See TracChangeset for help on using the changeset viewer.