WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/15/2010 10:02:39 AM (9 years ago)
Author:
scribu
Message:

Better error handling in get_meta_sql(). Props Viper007Bond. See #12891

File:
1 edited

Legend:

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

    r16365 r16379  
    587587        $sql_single = get_objects_in_term( $query['terms'], $query['taxonomy'], $query );
    588588
    589         if ( empty( $sql_single ) )
     589        if ( empty( $sql_single ) || is_wp_error( $sql_single ) )
    590590            return ' AND 0 = 1';
    591591
Note: See TracChangeset for help on using the changeset viewer.