Better error handling in get_meta_sql(). Props Viper007Bond. See #12891
git-svn-id: http://svn.automattic.com/wordpress/trunk@16379 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
17d25e2cdc
commit
2b58e241d0
|
@ -586,7 +586,7 @@ function get_tax_sql( $tax_query, $object_id_column ) {
|
|||
|
||||
$sql_single = get_objects_in_term( $query['terms'], $query['taxonomy'], $query );
|
||||
|
||||
if ( empty( $sql_single ) )
|
||||
if ( empty( $sql_single ) || is_wp_error( $sql_single ) )
|
||||
return ' AND 0 = 1';
|
||||
|
||||
$sql[] = $sql_single;
|
||||
|
|
Loading…
Reference in New Issue