Ticket #10605: 10605.diff
| File 10605.diff, 712 bytes (added by , 16 years ago) |
|---|
-
wp-includes/query.php
1596 1596 if ( $this->is_search ) 1597 1597 $q['post_type'] = 'any'; 1598 1598 else 1599 $q['post_type'] = ' post';1599 $q['post_type'] = ''; 1600 1600 } 1601 1601 $post_type = $q['post_type']; 1602 1602 if ( !isset($q['posts_per_page']) || $q['posts_per_page'] == 0 ) … … 1939 1939 1940 1940 // Taxonomies 1941 1941 if ( $this->is_tax ) { 1942 if ( '' != $q['taxonomy']) {1942 if ( !empty($q['taxonomy']) ) { 1943 1943 $taxonomy = $q['taxonomy']; 1944 1944 $tt[$taxonomy] = $q['term']; 1945 1945 $terms = get_terms($q['taxonomy'], array('slug'=>$q['term']));