Don't 404 for empty custom taxonomy terms. See #12533

git-svn-id: http://svn.automattic.com/wordpress/trunk@13615 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
dd32 2010-03-07 00:42:50 +00:00
parent 64105ec06d
commit 84618548d7
1 changed files with 1 additions and 1 deletions

View File

@ -2650,7 +2650,7 @@ class WP_Query {
} elseif ( $this->is_tax ) {
$tax = $this->get('taxonomy');
$slug = $this->get('term');
$term = &get_terms($tax, array( 'slug' => $slug ) );
$term = &get_terms($tax, array( 'slug' => $slug, 'hide_empty' => false ) );
if ( is_wp_error($term) || empty($term) )
return NULL;
$term = $term[0];